Make inner classes static (#405)

This commit is contained in:
MartinWitt 2023-01-12 14:26:44 +01:00 committed by Oleg Kalnichevski
parent f78ec699ab
commit f198fc0e62
3 changed files with 3 additions and 3 deletions

View File

@ -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<SimpleHttpResponse> {
private static class SimpleHttpResponseWriter extends AbstractMessageWriter<SimpleHttpResponse> {
public SimpleHttpResponseWriter() {
super(BasicLineFormatter.INSTANCE);

View File

@ -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<PoolEntry<HttpRoute, ManagedHttpClientConnection>> poolEntryRef;
private final String id;

View File

@ -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<PoolEntry<HttpRoute, ManagedAsyncClientConnection>> poolEntryRef;
private final String id;