activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject activemq git commit: [AMQ-7013] Added final for thread safety
Date Wed, 18 Jul 2018 21:16:32 GMT
Repository: activemq
Updated Branches:
  refs/heads/master 063d21f88 -> 7f4851f31


[AMQ-7013] Added final for thread safety


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/7f4851f3
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/7f4851f3
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/7f4851f3

Branch: refs/heads/master
Commit: 7f4851f31c718ec076a51e296766c796d4809df6
Parents: 063d21f
Author: Jeff Genender <jgenender@savoirtech.com>
Authored: Wed Jul 18 15:12:43 2018 -0600
Committer: Jeff Genender <jgenender@savoirtech.com>
Committed: Wed Jul 18 15:13:31 2018 -0600

----------------------------------------------------------------------
 .../src/main/java/org/apache/activemq/util/JenkinsHash.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/7f4851f3/activemq-client/src/main/java/org/apache/activemq/util/JenkinsHash.java
----------------------------------------------------------------------
diff --git a/activemq-client/src/main/java/org/apache/activemq/util/JenkinsHash.java b/activemq-client/src/main/java/org/apache/activemq/util/JenkinsHash.java
index e60689e..d9524ce 100644
--- a/activemq-client/src/main/java/org/apache/activemq/util/JenkinsHash.java
+++ b/activemq-client/src/main/java/org/apache/activemq/util/JenkinsHash.java
@@ -18,10 +18,10 @@ package org.apache.activemq.util;
 
 public class JenkinsHash {
 
-    private static long INT_MASK = 0x00000000ffffffffL;
-    private static long BYTE_MASK = 0x00000000000000ffL;
+    private static final long INT_MASK = 0x00000000ffffffffL;
+    private static final long BYTE_MASK = 0x00000000000000ffL;
 
-    private static JenkinsHash _instance = new JenkinsHash();
+    private static final JenkinsHash _instance = new JenkinsHash();
 
     public static JenkinsHash getInstance() {
         return _instance;
@@ -255,4 +255,4 @@ public class JenkinsHash {
         return (int) (c & INT_MASK);
     }
 
-}
\ No newline at end of file
+}


Mime
View raw message