tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1226536 - /tomcat/trunk/java/org/apache/catalina/deploy/ContextHandler.java
Date Mon, 02 Jan 2012 20:13:55 GMT
Author: markt
Date: Mon Jan  2 20:13:54 2012
New Revision: 1226536

URL: http://svn.apache.org/viewvc?rev=1226536&view=rev
Log:
Make read-only fields final

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

Modified: tomcat/trunk/java/org/apache/catalina/deploy/ContextHandler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/deploy/ContextHandler.java?rev=1226536&r1=1226535&r2=1226536&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/deploy/ContextHandler.java (original)
+++ tomcat/trunk/java/org/apache/catalina/deploy/ContextHandler.java Mon Jan  2 20:13:54 2012
@@ -14,8 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
-
 package org.apache.catalina.deploy;
 
 import java.util.ArrayList;
@@ -29,7 +27,6 @@ import java.util.Iterator;
  *
  * @author Fabien Carrion
  */
-
 public class ContextHandler extends ResourceBase {
 
     private static final long serialVersionUID = 1L;
@@ -59,7 +56,8 @@ public class ContextHandler extends Reso
      * soapHeader[0] : namespaceURI
      * soapHeader[1] : localpart
      */
-    private HashMap<String, String> soapHeaders = new HashMap<String, String>();
+    private final HashMap<String, String> soapHeaders =
+            new HashMap<String, String>();
 
     public Iterator<String> getLocalparts() {
         return soapHeaders.keySet().iterator();
@@ -83,7 +81,7 @@ public class ContextHandler extends Reso
     /**
      * The soapRole.
      */
-    private ArrayList<String> soapRoles = new ArrayList<String>();
+    private final ArrayList<String> soapRoles = new ArrayList<String>();
 
     public String getSoapRole(int i) {
         return this.soapRoles.get(i);
@@ -100,7 +98,7 @@ public class ContextHandler extends Reso
     /**
      * The portName.
      */
-    private ArrayList<String> portNames = new ArrayList<String>();
+    private final ArrayList<String> portNames = new ArrayList<String>();
 
     public String getPortName(int i) {
         return this.portNames.get(i);
@@ -150,6 +148,4 @@ public class ContextHandler extends Reso
         return (sb.toString());
 
     }
-
-
 }



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


Mime
View raw message