commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r803006 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrMatcher.java
Date Tue, 11 Aug 2009 06:39:39 GMT
Author: bayard
Date: Tue Aug 11 06:39:39 2009
New Revision: 803006

URL: http://svn.apache.org/viewvc?rev=803006&view=rev
Log:
Making inner class private fields final per LANG-474

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

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrMatcher.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrMatcher.java?rev=803006&r1=803005&r2=803006&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrMatcher.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrMatcher.java Tue Aug
11 06:39:39 2009
@@ -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.
@@ -307,7 +307,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.
@@ -340,7 +340,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