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

@@ -481,11 +481,11 @@ public class ChannelPublishingJmsMessageListener
*/
private static class DestinationNameHolder {
public final String name;
private final String name;
public final boolean isTopic;
private final boolean isTopic;
public DestinationNameHolder(String name, boolean isTopic) {
private DestinationNameHolder(String name, boolean isTopic) {
this.name = name;
this.isTopic = isTopic;
}

View File

@@ -942,7 +942,7 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler imp
*/
private javax.jms.Message retryableReceiveReply(Session session, Destination replyTo, String messageSelector)
throws JMSException {
Connection consumerConnection = null;
Connection consumerConnection = null;//NOSONAR
Session consumerSession = session;
MessageConsumer messageConsumer = null;
JMSException exception = null;
@@ -1306,15 +1306,15 @@ public class JmsOutboundGateway extends AbstractReplyProducingMessageHandler imp
private final javax.jms.Message reply;
public TimedReply(javax.jms.Message reply) {
private TimedReply(javax.jms.Message reply) {
this.reply = reply;
}
public long getTimeStamp() {
private long getTimeStamp() {
return timeStamp;
}
public javax.jms.Message getReply() {
private javax.jms.Message getReply() {
return reply;
}
}