diff options
author | Vitaly Takmazov | 2022-12-22 06:29:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-22 06:32:34 +0300 |
commit | a06f31f65ab32d71fef8a6966c6bf5a114153341 (patch) | |
tree | a4d6b3d8a9ced4a8968c257b0f599752ae433d78 /src | |
parent | f8406131fdbe835c52fd46ad68ddc7b0df54cffe (diff) |
Use correct `@Nonnull` annotation
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/util/ActivityPubRequestInterceptor.java | 6 |
1 files changed, 2 insertions, 4 deletions
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); |