Skip to content

Commit 6e629e7

Browse files
committed
minor clean: uniform cast style
1 parent d596056 commit 6e629e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/main/java/org/asynchttpclient/netty/handler/AsyncHttpClientHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
133133
callback.call();
134134

135135
} else if (attribute instanceof NettyResponseFuture<?>) {
136-
NettyResponseFuture<?> future = NettyResponseFuture.class.cast(attribute);
136+
NettyResponseFuture<?> future = (NettyResponseFuture<?>) attribute;
137137
future.touch();
138138

139139
if (hasIOExceptionFilters && requestSender.applyIoExceptionFiltersAndReplayRequest(future, ChannelClosedException.INSTANCE, channel))

0 commit comments

Comments
 (0)