Code Polishing (Sonar)

- remove redundant modifiers
- overridable methods called from ctors

Polishing - PR Comments
This commit is contained in:
Gary Russell
2015-12-03 15:23:12 -05:00
committed by Artem Bilan
parent ddb4321e1d
commit 255247ca9a
56 changed files with 447 additions and 381 deletions

View File

@@ -284,7 +284,7 @@ public class TcpOutboundGateway extends AbstractReplyProducingMessageHandler
private volatile Message<?> reply;
public AsyncReply(long remoteTimeout) {
private AsyncReply(long remoteTimeout) {
this.latch = new CountDownLatch(1);
this.secondChanceLatch = new CountDownLatch(1);
this.remoteTimeout = remoteTimeout;

View File

@@ -139,7 +139,7 @@ public class CachingClientConnectionFactory extends AbstractClientConnectionFact
private volatile boolean released;
public CachedConnection(TcpConnectionSupport connection, TcpListener tcpListener) {
private CachedConnection(TcpConnectionSupport connection, TcpListener tcpListener) {
super.setTheConnection(connection);
registerListener(tcpListener);
}

View File

@@ -159,7 +159,7 @@ public class FailoverClientConnectionFactory extends AbstractClientConnectionFac
private final AtomicLong epoch = new AtomicLong();
public FailoverTcpConnection(List<AbstractClientConnectionFactory> factories) throws Exception {
private FailoverTcpConnection(List<AbstractClientConnectionFactory> factories) throws Exception {
this.factories = factories;
this.factoryIterator = factories.iterator();
findAConnection();

View File

@@ -281,7 +281,7 @@ public class TcpNioSSLConnection extends TcpNioConnection {
private final ChannelOutputStream channelOutputStream;
public SSLChannelOutputStream(ChannelOutputStream channelOutputStream) {
private SSLChannelOutputStream(ChannelOutputStream channelOutputStream) {
this.channelOutputStream = channelOutputStream;
}