aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-22 06:29:11 +0300
committerGravatar Vitaly Takmazov2022-12-22 06:32:34 +0300
commita06f31f65ab32d71fef8a6966c6bf5a114153341 (patch)
treea4d6b3d8a9ced4a8968c257b0f599752ae433d78 /src/main/java
parentf8406131fdbe835c52fd46ad68ddc7b0df54cffe (diff)
Use correct `@Nonnull` annotation
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/util/ActivityPubRequestInterceptor.java6
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);