Skip to content

Commit 7e98e01

Browse files
committed
minor clean up
1 parent 57e5535 commit 7e98e01

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import io.netty.util.internal.chmv8.ConcurrentHashMapV8;
3939

4040
import java.io.IOException;
41-
import java.security.GeneralSecurityException;
4241
import java.util.Map.Entry;
4342
import java.util.concurrent.Semaphore;
4443
import java.util.concurrent.ThreadFactory;
@@ -57,8 +56,8 @@
5756
import org.asynchttpclient.netty.channel.pool.ChannelPool;
5857
import org.asynchttpclient.netty.channel.pool.DefaultChannelPool;
5958
import org.asynchttpclient.netty.channel.pool.NoopChannelPool;
60-
import org.asynchttpclient.netty.handler.HttpProtocol;
6159
import org.asynchttpclient.netty.handler.AsyncHttpClientHandler;
60+
import org.asynchttpclient.netty.handler.HttpProtocol;
6261
import org.asynchttpclient.netty.handler.WebSocketProtocol;
6362
import org.asynchttpclient.netty.request.NettyRequestSender;
6463
import org.asynchttpclient.netty.ssl.DefaultSslEngineFactory;
@@ -450,17 +449,16 @@ public SslHandler addSslHandler(ChannelPipeline pipeline, Uri uri, String virtua
450449
}
451450

452451
/**
453-
* Always make sure the channel who got cached support the proper protocol.
452+
* Always make sure the channel who got cached supports the proper protocol.
454453
* It could only occurs when a HttpMethod. CONNECT is used against a proxy
455454
* that requires upgrading from http to https.
456455
*/
457456
/**
458457
* @param pipeline the pipeline
459458
* @param uri the uri
460459
* @param virtualHost the virtual host
461-
* @throws GeneralSecurityException if creating the SslHandler crashed
462460
*/
463-
public void verifyChannelPipeline(ChannelPipeline pipeline, Uri uri, String virtualHost) throws GeneralSecurityException {
461+
public void verifyChannelPipeline(ChannelPipeline pipeline, Uri uri, String virtualHost) {
464462

465463
boolean sslHandlerConfigured = isSslHandlerConfigured(pipeline);
466464

0 commit comments

Comments
 (0)