Skip to content

Commit 6d288b0

Browse files
committed
Cleanup code: Remove unnecessary modifiers
1 parent bfef2b3 commit 6d288b0

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

api/src/main/java/org/asynchttpclient/AsyncHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*/
4646
public interface AsyncHandler<T> {
4747

48-
public static enum State {
48+
enum State {
4949

5050
/**
5151
* Stop the processing.

api/src/main/java/org/asynchttpclient/ListenableFuture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public interface ListenableFuture<V> extends Future<V> {
8383
*/
8484
ListenableFuture<V> addListener(Runnable listener, Executor exec);
8585

86-
public class CompletedFailure<T> implements ListenableFuture<T>{
86+
class CompletedFailure<T> implements ListenableFuture<T>{
8787

8888
private final ExecutionException e;
8989

api/src/main/java/org/asynchttpclient/Response.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public interface Response {
175175
*/
176176
SocketAddress getLocalAddress();
177177

178-
public static class ResponseBuilder {
178+
class ResponseBuilder {
179179
private final List<HttpResponseBodyPart> bodyParts = new ArrayList<>();
180180
private HttpResponseStatus status;
181181
private HttpResponseHeaders headers;

api/src/main/java/org/asynchttpclient/channel/NameResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public interface NameResolver {
1919

2020
InetAddress resolve(String name) throws UnknownHostException;
2121

22-
public enum JdkNameResolver implements NameResolver {
22+
enum JdkNameResolver implements NameResolver {
2323

2424
INSTANCE;
2525

api/src/main/java/org/asynchttpclient/channel/SSLEngineFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public interface SSLEngineFactory {
3737
*/
3838
SSLEngine newSSLEngine(String peerHost, int peerPort) throws GeneralSecurityException;
3939

40-
public static class DefaultSSLEngineFactory implements SSLEngineFactory {
40+
class DefaultSSLEngineFactory implements SSLEngineFactory {
4141

4242
private final AsyncHttpClientConfig config;
4343

api/src/main/java/org/asynchttpclient/channel/pool/ConnectionPoolPartitioning.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
public interface ConnectionPoolPartitioning {
2020

21-
public class ProxyPartitionKey {
21+
class ProxyPartitionKey {
2222
private final String proxyUrl;
2323
private final String targetHostBaseUrl;
2424

@@ -38,7 +38,7 @@ public String toString() {
3838

3939
Object getPartitionKey(Uri uri, String virtualHost, ProxyServer proxyServer);
4040

41-
public enum PerHostConnectionPoolPartitioning implements ConnectionPoolPartitioning {
41+
enum PerHostConnectionPoolPartitioning implements ConnectionPoolPartitioning {
4242

4343
INSTANCE;
4444

api/src/main/java/org/asynchttpclient/handler/resumable/ResumableAsyncHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public void run() {
247247
/**
248248
* An interface to implement in order to manage the way the incomplete file management are handled.
249249
*/
250-
public static interface ResumableProcessor {
250+
public interface ResumableProcessor {
251251

252252
/**
253253
* Associate a key with the number of bytes successfully transferred.

api/src/main/java/org/asynchttpclient/proxy/ProxyServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public enum Protocol {
3636

3737
private final String protocol;
3838

39-
private Protocol(final String protocol) {
39+
Protocol(final String protocol) {
4040
this.protocol = protocol;
4141
}
4242

api/src/main/java/org/asynchttpclient/proxy/ProxyServerSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public interface ProxyServerSelector {
1818
/**
1919
* A selector that always selects no proxy.
2020
*/
21-
static final ProxyServerSelector NO_PROXY_SELECTOR = new ProxyServerSelector() {
21+
ProxyServerSelector NO_PROXY_SELECTOR = new ProxyServerSelector() {
2222
@Override
2323
public ProxyServer select(Uri uri) {
2424
return null;

api/src/main/java/org/asynchttpclient/request/body/generator/FeedableBodyGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void feed(final ByteBuffer buffer, final boolean isLast) throws IOExcepti
4747
}
4848
}
4949

50-
public static interface FeedListener {
50+
public interface FeedListener {
5151
void onContentAdded();
5252
}
5353

@@ -59,7 +59,7 @@ public void writeChunkBoundaries() {
5959
this.writeChunkBoundaries = true;
6060
}
6161

62-
private static enum PushBodyState {
62+
private enum PushBodyState {
6363
ONGOING, CLOSING, FINISHED;
6464
}
6565

0 commit comments

Comments
 (0)