Skip to content

Commit 65e1b80

Browse files
committed
nit
1 parent 30e7235 commit 65e1b80

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

client/src/main/java/org/asynchttpclient/exception/RemotelyClosedException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public final class RemotelyClosedException extends IOException {
2121

2222
public static final RemotelyClosedException INSTANCE = unknownStackTrace(new RemotelyClosedException(), RemotelyClosedException.class, "INSTANCE");
2323

24-
public RemotelyClosedException() {
24+
RemotelyClosedException() {
2525
super("Remotely closed");
2626
}
2727
}

client/src/main/java/org/asynchttpclient/handler/BodyDeferringAsyncHandler.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,9 @@ public void close() throws IOException {
257257
try {
258258
getLastResponse();
259259
} catch (ExecutionException e) {
260-
IOException ioe = new IOException(e.getMessage());
261-
ioe.initCause(e.getCause());
262-
throw ioe;
260+
throw new IOException(e.getMessage(), e.getCause());
263261
} catch (InterruptedException e) {
264-
IOException ioe = new IOException(e.getMessage());
265-
ioe.initCause(e);
266-
throw ioe;
262+
throw new IOException(e.getMessage(), e);
267263
}
268264
}
269265

client/src/main/java/org/asynchttpclient/netty/OnLastHttpContentCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public abstract class OnLastHttpContentCallback {
1616

1717
protected final NettyResponseFuture<?> future;
1818

19-
public OnLastHttpContentCallback(NettyResponseFuture<?> future) {
19+
protected OnLastHttpContentCallback(NettyResponseFuture<?> future) {
2020
this.future = future;
2121
}
2222

client/src/main/java/org/asynchttpclient/netty/channel/NonBlockingSemaphore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class NonBlockingSemaphore implements NonBlockingSemaphoreLike {
2424

2525
private final AtomicInteger permits;
2626

27-
public NonBlockingSemaphore(int permits) {
27+
NonBlockingSemaphore(int permits) {
2828
this.permits = new AtomicInteger(permits);
2929
}
3030

0 commit comments

Comments
 (0)