diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java index ce82e73f1..9d81ae1a6 100644 --- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java +++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HttpByteArrayCacheEntrySerializer.java @@ -385,7 +385,7 @@ public class HttpByteArrayCacheEntrySerializer implements HttpCacheEntrySerializ * Copied from DefaultHttpResponseWriter, but wrapping a SimpleHttpResponse instead of a ClassicHttpResponse */ // Seems like the DefaultHttpResponseWriter should be able to do this, but it doesn't seem to be able to - private class SimpleHttpResponseWriter extends AbstractMessageWriter { + private static class SimpleHttpResponseWriter extends AbstractMessageWriter { public SimpleHttpResponseWriter() { super(BasicLineFormatter.INSTANCE); diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java index 7be931266..ad9582949 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/io/PoolingHttpClientConnectionManager.java @@ -634,7 +634,7 @@ public class PoolingHttpClientConnectionManager private static final PrefixedIncrementingId INCREMENTING_ID = new PrefixedIncrementingId("ep-"); - class InternalConnectionEndpoint extends ConnectionEndpoint implements Identifiable { + static class InternalConnectionEndpoint extends ConnectionEndpoint implements Identifiable { private final AtomicReference> poolEntryRef; private final String id; diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/nio/PoolingAsyncClientConnectionManager.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/nio/PoolingAsyncClientConnectionManager.java index 0fc556cb2..0212e3e49 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/nio/PoolingAsyncClientConnectionManager.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/nio/PoolingAsyncClientConnectionManager.java @@ -670,7 +670,7 @@ public class PoolingAsyncClientConnectionManager implements AsyncClientConnectio private static final PrefixedIncrementingId INCREMENTING_ID = new PrefixedIncrementingId("ep-"); - class InternalConnectionEndpoint extends AsyncConnectionEndpoint implements Identifiable { + static class InternalConnectionEndpoint extends AsyncConnectionEndpoint implements Identifiable { private final AtomicReference> poolEntryRef; private final String id;