package com.veyndan.redditclient.api.reddit.network.interceptor;

import com.google.common.base.Preconditions;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public final class UserAgentInterceptor implements Interceptor {
    private static final String USER_AGENT_HEADER_NAME = "User-Agent";
    private final String userAgentHeaderValue;

    public UserAgentInterceptor(final String userAgentHeaderValue) {
        this.userAgentHeaderValue = Preconditions.checkNotNull(userAgentHeaderValue);
    }

    @Override
    public Response intercept(final Chain chain) throws IOException {
        final Request originalRequest = chain.request();
        final Request requestWithUserAgent = originalRequest.newBuilder()
                .header(USER_AGENT_HEADER_NAME, userAgentHeaderValue)
                .build();
        return chain.proceed(requestWithUserAgent);
    }
}

@@ -70,46 +70,28 @@
 ort 
-com.google.common.base.Precondi
+java.io.IOExcep
 tion
-s;%0A
+;
 %0Aimp
@@ -99,30 +99,28 @@
 rt java.
-io.IOException
+util.Objects
 ;%0A%0Aimpor
@@ -485,30 +485,26 @@
 e = 
-Preconditions.checkNot
+Objects.requireNon
 Null

Replace Preconditions.checkNonNull() from Guava with Java sdks Objects.requireNonNull()