tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1226534 - /tomcat/trunk/java/org/apache/catalina/deploy/ResourceBase.java
Date Mon, 02 Jan 2012 20:12:39 GMT
Author: markt
Date: Mon Jan  2 20:12:38 2012
New Revision: 1226534

URL: http://svn.apache.org/viewvc?rev=1226534&view=rev
Log:
Make fields final

Modified:
    tomcat/trunk/java/org/apache/catalina/deploy/ResourceBase.java

Modified: tomcat/trunk/java/org/apache/catalina/deploy/ResourceBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/deploy/ResourceBase.java?rev=1226534&r1=1226533&r2=1226534&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/deploy/ResourceBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/deploy/ResourceBase.java Mon Jan  2 20:12:38 2012
@@ -86,7 +86,8 @@ public class ResourceBase implements Ser
     /**
      * Holder for our configured properties.
      */
-    private HashMap<String, Object> properties = new HashMap<String, Object>();
+    private final HashMap<String, Object> properties =
+            new HashMap<String, Object>();
 
     /**
      * Return a configured property.
@@ -116,7 +117,7 @@ public class ResourceBase implements Ser
         return properties.keySet().iterator();
     }
 
-    private List<InjectionTarget> injectionTargets = new ArrayList<InjectionTarget>();
+    private final List<InjectionTarget> injectionTargets = new ArrayList<InjectionTarget>();
 
     @Override
     public void addInjectionTarget(String injectionTargetName, String jndiName) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message