Skip to content

Commit

Permalink
Fix isInstanceof from AsyncHttpClient#1857
Browse files Browse the repository at this point in the history
And remove unused import statement in ChannelManager.
  • Loading branch information
skbeh committed Apr 15, 2023
1 parent cf96e6b commit 6123bff
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
import io.netty.channel.ChannelOption;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.epoll.EpollEventLoopGroup;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.ChannelGroupFuture;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.channel.kqueue.KQueueEventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.handler.codec.http.HttpClientCodec;
import io.netty.handler.codec.http.HttpContentDecompressor;
Expand All @@ -44,7 +42,6 @@
import io.netty.handler.proxy.Socks5ProxyHandler;
import io.netty.handler.ssl.SslHandler;
import io.netty.handler.stream.ChunkedWriteHandler;
import io.netty.incubator.channel.uring.IOUringEventLoopGroup;
import io.netty.resolver.NameResolver;
import io.netty.util.Timer;
import io.netty.util.concurrent.DefaultThreadFactory;
Expand Down Expand Up @@ -116,7 +113,7 @@ public class ChannelManager {
private boolean isInstanceof(Object object, String name) {
final Class<?> clazz;
try {
clazz = Class.forName(name, false, null);
clazz = Class.forName(name, false, this.getClass().getClassLoader());
} catch (ClassNotFoundException ignored) {
return false;
}
Expand Down

0 comments on commit 6123bff

Please sign in to comment.