Removed unused private fields and local variables
This commit is contained in:
parent
5b411692a7
commit
661589e386
|
@ -357,7 +357,6 @@ public final class ResponseCacheControl implements CacheControl {
|
|||
private long staleIfError = -1;
|
||||
private Set<String> noCacheFields;
|
||||
private boolean mustUnderstand;
|
||||
private boolean noTransform;
|
||||
private boolean immutable;
|
||||
|
||||
Builder() {
|
||||
|
|
|
@ -1265,7 +1265,6 @@ class AsyncCachingExec extends CachingExecBase implements AsyncExecChainHandler
|
|||
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) {
|
||||
|
|
|
@ -40,7 +40,6 @@ import org.apache.hc.client5.http.protocol.HttpClientContext;
|
|||
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 @@ class InternalH2AsyncExecRuntime implements AsyncExecRuntime {
|
|||
final HttpClientContext context,
|
||||
final FutureCallback<AsyncExecRuntime> callback) {
|
||||
if (sessionRef.get() == null) {
|
||||
final HttpHost target = route.getTargetHost();
|
||||
final RequestConfig requestConfig = context.getRequestConfig();
|
||||
@SuppressWarnings("deprecation")
|
||||
final Timeout connectTimeout = requestConfig.getConnectTimeout();
|
||||
|
|
|
@ -78,11 +78,6 @@ public final class ContentCompressionExec implements ExecChainHandler {
|
|||
private final Lookup<InputStreamFactory> decoderRegistry;
|
||||
private final boolean ignoreUnknown;
|
||||
|
||||
/**
|
||||
* An empty immutable {@code String} array.
|
||||
*/
|
||||
private static final String[] EMPTY_STRING_ARRAY = {};
|
||||
|
||||
public ContentCompressionExec(
|
||||
final List<String> acceptEncoding,
|
||||
final Lookup<InputStreamFactory> decoderRegistry,
|
||||
|
|
|
@ -41,8 +41,6 @@ import org.apache.hc.core5.http.Method;
|
|||
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;
|
||||
|
||||
/**
|
||||
* <h1>RequestTraceInterceptor</h1>
|
||||
|
@ -102,8 +100,6 @@ import org.slf4j.LoggerFactory;
|
|||
@Contract(threading = ThreadingBehavior.STATELESS)
|
||||
public class RequestValidateTrace implements HttpRequestInterceptor {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(RequestValidateTrace.class);
|
||||
|
||||
/**
|
||||
* Singleton instance of {@link RequestValidateTrace}.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue