Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit07d615d

Browse files
committed
Minor clean up: remove useless finals
1 parent851fdcd commit07d615d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,11 @@ public void call() {
480480
};
481481
}
482482

483-
publicvoiddrainChannelAndOffer(finalChannelchannel,finalNettyResponseFuture<?>future) {
483+
publicvoiddrainChannelAndOffer(Channelchannel,NettyResponseFuture<?>future) {
484484
drainChannelAndOffer(channel,future,future.isKeepAlive(),future.getPartitionKey());
485485
}
486486

487-
publicvoiddrainChannelAndOffer(finalChannelchannel,finalNettyResponseFuture<?>future,booleankeepAlive,ObjectpartitionKey) {
487+
publicvoiddrainChannelAndOffer(Channelchannel,NettyResponseFuture<?>future,booleankeepAlive,ObjectpartitionKey) {
488488
Channels.setAttribute(channel,newDrainCallback(future,channel,keepAlive,partitionKey));
489489
}
490490

@@ -497,15 +497,15 @@ public EventLoopGroup getEventLoopGroup() {
497497
}
498498

499499
publicClientStatsgetClientStats() {
500-
finalMap<String,Long>totalConnectionsPerHost =openChannels
500+
Map<String,Long>totalConnectionsPerHost =openChannels
501501
.stream()
502502
.map(Channel::remoteAddress)
503503
.filter(a ->a.getClass() ==InetSocketAddress.class)
504504
.map(a -> (InetSocketAddress)a)
505505
.map(InetSocketAddress::getHostName)
506506
.collect(Collectors.groupingBy(Function.identity(),Collectors.counting()));
507-
finalMap<String,Long>idleConnectionsPerHost =channelPool.getIdleChannelCountPerHost();
508-
finalMap<String,HostStats>statsPerHost =totalConnectionsPerHost
507+
Map<String,Long>idleConnectionsPerHost =channelPool.getIdleChannelCountPerHost();
508+
Map<String,HostStats>statsPerHost =totalConnectionsPerHost
509509
.entrySet()
510510
.stream()
511511
.collect(Collectors.toMap(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp