diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/ResponseCacheControl.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/ResponseCacheControl.java index 7e7f4b01f..57eafacb2 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/ResponseCacheControl.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/ResponseCacheControl.java @@ -357,7 +357,6 @@ public static class Builder { private long staleIfError = -1; private Set noCacheFields; private boolean mustUnderstand; - private boolean noTransform; private boolean immutable; Builder() { diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java index ffd9b261d..7dad9bcf9 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AsyncCachingExec.java @@ -1265,7 +1265,6 @@ public void cancelled() { public AsyncDataConsumer handleResponse( final HttpResponse backendResponse, final EntityDetails entityDetails) throws HttpException, IOException { - final HttpClientContext context = scope.clientContext; final Instant responseDate = getCurrentDate(); final AsyncExecCallback callback; if (backendResponse.getCode() != HttpStatus.SC_NOT_MODIFIED) { diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalH2AsyncExecRuntime.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalH2AsyncExecRuntime.java index 42b1a3327..8ebe34f53 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalH2AsyncExecRuntime.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalH2AsyncExecRuntime.java @@ -40,7 +40,6 @@ import org.apache.hc.core5.concurrent.Cancellable; import org.apache.hc.core5.concurrent.ComplexCancellable; import org.apache.hc.core5.concurrent.FutureCallback; -import org.apache.hc.core5.http.HttpHost; import org.apache.hc.core5.http.HttpVersion; import org.apache.hc.core5.http.nio.AsyncClientExchangeHandler; import org.apache.hc.core5.http.nio.AsyncPushConsumer; @@ -88,7 +87,6 @@ public Cancellable acquireEndpoint( final HttpClientContext context, final FutureCallback callback) { if (sessionRef.get() == null) { - final HttpHost target = route.getTargetHost(); final RequestConfig requestConfig = context.getRequestConfig(); @SuppressWarnings("deprecation") final Timeout connectTimeout = requestConfig.getConnectTimeout(); diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ContentCompressionExec.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ContentCompressionExec.java index 8bcdc3abe..0ffe820ce 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ContentCompressionExec.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/ContentCompressionExec.java @@ -78,11 +78,6 @@ public final class ContentCompressionExec implements ExecChainHandler { private final Lookup decoderRegistry; private final boolean ignoreUnknown; - /** - * An empty immutable {@code String} array. - */ - private static final String[] EMPTY_STRING_ARRAY = {}; - public ContentCompressionExec( final List acceptEncoding, final Lookup decoderRegistry, diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/protocol/RequestValidateTrace.java b/httpclient5/src/main/java/org/apache/hc/client5/http/protocol/RequestValidateTrace.java index 9f7e381ea..e7dfeb1ca 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/protocol/RequestValidateTrace.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/protocol/RequestValidateTrace.java @@ -41,8 +41,6 @@ import org.apache.hc.core5.http.ProtocolException; import org.apache.hc.core5.http.protocol.HttpContext; import org.apache.hc.core5.util.Args; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** *

RequestTraceInterceptor

@@ -102,8 +100,6 @@ @Contract(threading = ThreadingBehavior.STATELESS) public class RequestValidateTrace implements HttpRequestInterceptor { - private static final Logger LOG = LoggerFactory.getLogger(RequestValidateTrace.class); - /** * Singleton instance of {@link RequestValidateTrace}. */