Make some STOMP fields final
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/45d16013 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/45d16013 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/45d16013 Branch: refs/heads/master Commit: 45d1601334016e1d8762d08307ade53ffb8e5763 Parents: 5c4511b Author: Ville Skyttä <ville.sky...@iki.fi> Authored: Mon Jul 20 10:32:56 2015 +0300 Committer: Clebert Suconic <clebertsuco...@apache.org> Committed: Wed Jul 22 11:48:42 2015 +0100 ---------------------------------------------------------------------- .../apache/activemq/artemis/core/protocol/stomp/SimpleBytes.java | 2 +- .../activemq/artemis/core/protocol/stomp/StompConnection.java | 2 +- .../artemis/core/protocol/stomp/StompProtocolManagerFactory.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/45d16013/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/SimpleBytes.java ---------------------------------------------------------------------- diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/SimpleBytes.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/SimpleBytes.java index 474ea3d..fff613a 100644 --- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/SimpleBytes.java +++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/SimpleBytes.java @@ -21,7 +21,7 @@ import java.nio.charset.StandardCharsets; public class SimpleBytes { - private int step; + private final int step; private byte[] contents; private int index; http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/45d16013/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java ---------------------------------------------------------------------- diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java index df03baf..1929b68 100644 --- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java +++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompConnection.java @@ -92,7 +92,7 @@ public final class StompConnection implements RemotingConnection private final Object sendLock = new Object(); - private int minLargeMessageSize; + private final int minLargeMessageSize; public StompFrame decode(ActiveMQBuffer buffer) throws ActiveMQStompException { http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/45d16013/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManagerFactory.java ---------------------------------------------------------------------- diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManagerFactory.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManagerFactory.java index c65593b..381b38d 100644 --- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManagerFactory.java +++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompProtocolManagerFactory.java @@ -29,7 +29,7 @@ public class StompProtocolManagerFactory extends AbstractProtocolManagerFactory< private static final String MODULE_NAME = "artemis-stomp-protocol"; - private static String[] SUPPORTED_PROTOCOLS = {STOMP_PROTOCOL_NAME}; + private static final String[] SUPPORTED_PROTOCOLS = {STOMP_PROTOCOL_NAME}; public ProtocolManager createProtocolManager(final ActiveMQServer server, final List<StompFrameInterceptor> incomingInterceptors, List<StompFrameInterceptor> outgoingInterceptors) {