You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2020/02/22 06:53:16 UTC

[activemq] 03/08: Mark `staticCache' final

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch activemq-5.15.x
in repository https://gitbox.apache.org/repos/asf/activemq.git

commit 06d9f955ce68df3add0bfcca0bbc35c2784efabc
Author: Daniel Trebbien <dt...@gmail.com>
AuthorDate: Fri Jul 28 19:32:59 2017 -0700

    Mark `staticCache' final
    
    This fixes a warning in NetBeans IDE about synchronizing on a non-final
    field.
    
    (cherry picked from commit 7480c660318416ebf41816122ad9b71157329a11)
---
 .../src/main/java/org/apache/activemq/jaas/PropertiesLoader.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/activemq-jaas/src/main/java/org/apache/activemq/jaas/PropertiesLoader.java b/activemq-jaas/src/main/java/org/apache/activemq/jaas/PropertiesLoader.java
index 56d205d..3f2df61 100644
--- a/activemq-jaas/src/main/java/org/apache/activemq/jaas/PropertiesLoader.java
+++ b/activemq-jaas/src/main/java/org/apache/activemq/jaas/PropertiesLoader.java
@@ -24,7 +24,7 @@ import org.slf4j.LoggerFactory;
 
 public class PropertiesLoader {
     private static final Logger LOG = LoggerFactory.getLogger(PropertiesLoader.class);
-    static Map<FileNameKey, ReloadableProperties> staticCache = new HashMap<FileNameKey, ReloadableProperties>();
+    static final Map<FileNameKey, ReloadableProperties> staticCache = new HashMap<FileNameKey, ReloadableProperties>();
     protected boolean debug;
 
     public void init(Map options) {