From a06f31f65ab32d71fef8a6966c6bf5a114153341 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 22 Dec 2022 06:29:11 +0300 Subject: Use correct `@Nonnull` annotation --- src/main/java/com/juick/util/ActivityPubRequestInterceptor.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/juick') diff --git a/src/main/java/com/juick/util/ActivityPubRequestInterceptor.java b/src/main/java/com/juick/util/ActivityPubRequestInterceptor.java index 79beaa09..1876cc90 100644 --- a/src/main/java/com/juick/util/ActivityPubRequestInterceptor.java +++ b/src/main/java/com/juick/util/ActivityPubRequestInterceptor.java @@ -17,21 +17,19 @@ package com.juick.util; -import org.jetbrains.annotations.NotNull; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpRequest; import org.springframework.http.client.ClientHttpRequestExecution; import org.springframework.http.client.ClientHttpRequestInterceptor; import org.springframework.http.client.ClientHttpResponse; +import org.springframework.lang.NonNull; import java.io.IOException; -import com.juick.www.api.activity.model.Activity; - public class ActivityPubRequestInterceptor implements ClientHttpRequestInterceptor { @Override - public @NotNull ClientHttpResponse intercept(HttpRequest request, byte @NotNull [] body, + public @NonNull ClientHttpResponse intercept(HttpRequest request, @NonNull byte[] body, ClientHttpRequestExecution execution) throws IOException { request.getHeaders().set(HttpHeaders.USER_AGENT, "Juick/2.x"); return execution.execute(request, body); -- cgit v1.2.3