Skip to content

Commit 9bf0399

Browse files
committed
minor clean up
1 parent 2eed768 commit 9bf0399

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.asynchttpclient.Realm;
3333
import org.asynchttpclient.Request;
3434
import org.asynchttpclient.channel.ChannelPoolPartitioning;
35-
import org.asynchttpclient.netty.channel.ChannelManager;
3635
import org.asynchttpclient.netty.channel.ChannelState;
3736
import org.asynchttpclient.netty.channel.Channels;
3837
import org.asynchttpclient.netty.channel.ConnectionSemaphore;
@@ -94,6 +93,7 @@ public final class NettyResponseFuture<V> implements ListenableFuture<V> {
9493
private static final AtomicIntegerFieldUpdater<NettyResponseFuture> onThrowableCalledField = AtomicIntegerFieldUpdater.newUpdater(NettyResponseFuture.class, "onThrowableCalled");
9594
@SuppressWarnings("rawtypes")
9695
private static final AtomicReferenceFieldUpdater<NettyResponseFuture, TimeoutsHolder> timeoutsHolderField = AtomicReferenceFieldUpdater.newUpdater(NettyResponseFuture.class, TimeoutsHolder.class, "timeoutsHolder");
96+
@SuppressWarnings("rawtypes")
9797
private static final AtomicReferenceFieldUpdater<NettyResponseFuture, Object> partitionKeyLockField = AtomicReferenceFieldUpdater.newUpdater(NettyResponseFuture.class, Object.class, "partitionKeyLock");
9898

9999
// volatile where we need CAS ops

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

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import java.util.concurrent.ConcurrentHashMap;
1818

1919
import org.asynchttpclient.AsyncHttpClientConfig;
20-
import org.asynchttpclient.exception.PoolAlreadyClosedException;
2120
import org.asynchttpclient.exception.TooManyConnectionsException;
2221
import org.asynchttpclient.exception.TooManyConnectionsPerHostException;
2322

0 commit comments

Comments
 (0)