commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r754456 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java
Date Sat, 14 Mar 2009 14:56:55 GMT
Author: sebb
Date: Sat Mar 14 14:56:55 2009
New Revision: 754456

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

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java?rev=754456&r1=754455&r2=754456&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/ClassUtils.java Sat Mar 14
14:56:55 2009
@@ -69,7 +69,7 @@
     /**
      * Maps primitive <code>Class</code>es to their corresponding wrapper <code>Class</code>.
      */
-    private static Map primitiveWrapperMap = new HashMap();
+    private static final Map primitiveWrapperMap = new HashMap();
     static {
          primitiveWrapperMap.put(Boolean.TYPE, Boolean.class);
          primitiveWrapperMap.put(Byte.TYPE, Byte.class);
@@ -85,7 +85,7 @@
     /**
      * Maps wrapper <code>Class</code>es to their corresponding primitive types.
      */
-    private static Map wrapperPrimitiveMap = new HashMap();
+    private static final Map wrapperPrimitiveMap = new HashMap();
     static {
         for (Iterator it = primitiveWrapperMap.keySet().iterator(); it.hasNext();) {
             Class primitiveClass = (Class) it.next();
@@ -99,12 +99,12 @@
     /**
      * Maps a primitive class name to its corresponding abbreviation used in array class
names.
      */
-    private static Map abbreviationMap = new HashMap();
+    private static final Map abbreviationMap = new HashMap();
 
     /**
      * Maps an abbreviation used in array class names to corresponding primitive class name.
      */
-    private static Map reverseAbbreviationMap = new HashMap();
+    private static final Map reverseAbbreviationMap = new HashMap();
 
     /**
      * Add primitive type abbreviation to maps of abbreviations.



Mime
View raw message