Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit ba82963

Browse files
committed
refactor: add @NotNull annotation from JB
1 parent 1fec34b commit ba82963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ai/deepcode/javaclient/core/Base64EncodeRequestInterceptor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import okhttp3.RequestBody;
77
import okhttp3.Response;
88
import okio.Buffer;
9+
import org.jetbrains.annotations.NotNull;
910

1011
import java.io.ByteArrayOutputStream;
1112
import java.io.IOException;
@@ -18,9 +19,8 @@ public class Base64EncodeRequestInterceptor implements Interceptor {
1819
private static final String MEDIA_TYPE_OCTET_STREAM = "application/octet-stream";
1920
private static final String MEDIA_TYPE_OCTET_STREAM_GZIP = "gzip";
2021

21-
@SuppressWarnings("NullableProblems") // we don't have @NotNull annotation
2222
@Override
23-
public Response intercept(Interceptor.Chain chain) throws IOException {
23+
public @NotNull Response intercept(Interceptor.Chain chain) throws IOException {
2424
Request originalRequest = chain.request();
2525
Request.Builder builder = originalRequest.newBuilder();
2626

0 commit comments

Comments
 (0)