commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r905165 - in /commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang: CharSet.java text/ExtendedMessageFormat.java text/StrMatcher.java
Date Mon, 01 Feb 2010 01:18:03 GMT
Author: niallp
Date: Mon Feb  1 01:18:02 2010
New Revision: 905165

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

Modified:
    commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java
    commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
    commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrMatcher.java

Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java?rev=905165&r1=905164&r2=905165&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/CharSet.java
Mon Feb  1 01:18:02 2010
@@ -92,7 +92,7 @@
     }
 
     /** The set of CharRange objects. */
-    private Set set = new HashSet();
+    private final Set set = new HashSet();
 
     //-----------------------------------------------------------------------
     /**

Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/ExtendedMessageFormat.java?rev=905165&r1=905164&r2=905165&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/ExtendedMessageFormat.java
Mon Feb  1 01:18:02 2010
@@ -78,7 +78,7 @@
     private static final char QUOTE = '\'';
 
     private String toPattern;
-    private Map registry;
+    private final Map registry;
 
     /**
      * Create a new ExtendedMessageFormat for the default locale.

Modified: commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrMatcher.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrMatcher.java?rev=905165&r1=905164&r2=905165&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrMatcher.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/main/java/org/apache/commons/lang/text/StrMatcher.java
Mon Feb  1 01:18:02 2010
@@ -273,7 +273,7 @@
      */
     static final class CharSetMatcher extends StrMatcher {
         /** The set of characters to match. */
-        private char[] chars;
+        private final char[] chars;
 
         /**
          * Constructor that creates a matcher from a character array.
@@ -306,7 +306,7 @@
      */
     static final class CharMatcher extends StrMatcher {
         /** The character to match. */
-        private char ch;
+        private final char ch;
 
         /**
          * Constructor that creates a matcher that matches a single character.
@@ -338,7 +338,7 @@
      */
     static final class StringMatcher extends StrMatcher {
         /** The string to match, as a character array. */
-        private char[] chars;
+        private final char[] chars;
 
         /**
          * Constructor that creates a matcher from a String.



Mime
View raw message