commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1073783 - /commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java
Date Wed, 23 Feb 2011 15:28:43 GMT
Author: ggregory
Date: Wed Feb 23 15:28:42 2011
New Revision: 1073783

URL: http://svn.apache.org/viewvc?rev=1073783&view=rev
Log:
Better name for internal static variable.

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java?rev=1073783&r1=1073782&r2=1073783&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java
(original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/language/ColognePhonetic.java
Wed Feb 23 15:28:42 2011
@@ -258,7 +258,7 @@ public class ColognePhonetic implements 
         }
     }
 
-    private static final char[][] PRE_REPLACEMENTS = new char[][] {
+    private static final char[][] PREPROCESS_MAP = new char[][] {
             { '\u00C4', 'A' },     // Ä
             { '\u00DC', 'U' },     // Ü
             { '\u00D6', 'O' },     // Ö
@@ -405,9 +405,9 @@ public class ColognePhonetic implements 
 
         for (int index = 0; index < chrs.length; index++) {
             if (chrs[index] > 'Z') {
-                for (int replacement = 0; replacement < PRE_REPLACEMENTS.length; replacement++)
{
-                    if (chrs[index] == PRE_REPLACEMENTS[replacement][0]) {
-                        chrs[index] = PRE_REPLACEMENTS[replacement][1];
+                for (int replacement = 0; replacement < PREPROCESS_MAP.length; replacement++)
{
+                    if (chrs[index] == PREPROCESS_MAP[replacement][0]) {
+                        chrs[index] = PREPROCESS_MAP[replacement][1];
                         break;
                     }
                 }



Mime
View raw message