Skip to content

Commit 66806a4

Browse files
author
prat
committed
Marked channel local variable as final (#2042)
1 parent 4bd4f10 commit 66806a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public boolean cancel(boolean force) {
187187
return false;
188188
}
189189

190-
Channel ch = channel; //atomic read, so that it won't end up in TOCTOU
190+
final Channel ch = channel; //atomic read, so that it won't end up in TOCTOU
191191
if (ch != null) {
192192
Channels.setDiscard(ch);
193193
Channels.silentlyCloseChannel(ch);

0 commit comments

Comments
 (0)