Skip to content

Commit deb01a6

Browse files
authored
Fix isInstanceof from #1857 (#1860)
And remove unused import statement in ChannelManager.
1 parent cf96e6b commit deb01a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525
import io.netty.channel.ChannelOption;
2626
import io.netty.channel.ChannelPipeline;
2727
import io.netty.channel.EventLoopGroup;
28-
import io.netty.channel.epoll.EpollEventLoopGroup;
2928
import io.netty.channel.group.ChannelGroup;
3029
import io.netty.channel.group.ChannelGroupFuture;
3130
import io.netty.channel.group.DefaultChannelGroup;
32-
import io.netty.channel.kqueue.KQueueEventLoopGroup;
3331
import io.netty.channel.nio.NioEventLoopGroup;
3432
import io.netty.handler.codec.http.HttpClientCodec;
3533
import io.netty.handler.codec.http.HttpContentDecompressor;
@@ -44,7 +42,6 @@
4442
import io.netty.handler.proxy.Socks5ProxyHandler;
4543
import io.netty.handler.ssl.SslHandler;
4644
import io.netty.handler.stream.ChunkedWriteHandler;
47-
import io.netty.incubator.channel.uring.IOUringEventLoopGroup;
4845
import io.netty.resolver.NameResolver;
4946
import io.netty.util.Timer;
5047
import io.netty.util.concurrent.DefaultThreadFactory;
@@ -116,7 +113,7 @@ public class ChannelManager {
116113
private boolean isInstanceof(Object object, String name) {
117114
final Class<?> clazz;
118115
try {
119-
clazz = Class.forName(name, false, null);
116+
clazz = Class.forName(name, false, this.getClass().getClassLoader());
120117
} catch (ClassNotFoundException ignored) {
121118
return false;
122119
}

0 commit comments

Comments
 (0)