tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1230761 - /tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java
Date Thu, 12 Jan 2012 20:32:27 GMT
Author: markt
Date: Thu Jan 12 20:32:27 2012
New Revision: 1230761

URL: http://svn.apache.org/viewvc?rev=1230761&view=rev
Log:
Add some finals prompted by the UCDectector

Modified:
    tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java

Modified: tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java?rev=1230761&r1=1230760&r2=1230761&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java Thu Jan 12 20:32:27 2012
@@ -144,10 +144,10 @@ public class Tomcat {
     // created contexts. Can be replaced with setRealm() on
     // the context.
     protected Realm defaultRealm;
-    private Map<String, String> userPass = new HashMap<String, String>();
-    private Map<String, List<String>> userRoles =
+    private final Map<String, String> userPass = new HashMap<String, String>();
+    private final Map<String, List<String>> userRoles =
         new HashMap<String, List<String>>();
-    private Map<String, Principal> userPrincipals =
+    private final Map<String, Principal> userPrincipals =
         new HashMap<String, Principal>();
 
     public Tomcat() {
@@ -639,7 +639,7 @@ public class Tomcat {
         System.setProperty(Globals.CATALINA_BASE_PROP, basedir);
     }
 
-    static String[] silences = new String[] {
+    static final String[] silences = new String[] {
         "org.apache.coyote.http11.Http11Protocol",
         "org.apache.catalina.core.StandardService",
         "org.apache.catalina.core.StandardEngine",
@@ -816,7 +816,7 @@ public class Tomcat {
      * more direct control over the servlet.
      */
     public static class ExistingStandardWrapper extends StandardWrapper {
-        private Servlet existing;
+        private final Servlet existing;
         boolean init = false;
 
         @SuppressWarnings("deprecation")



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


Mime
View raw message