You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2014/11/04 08:32:24 UTC

svn commit: r1636515 - /commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java

Author: tn
Date: Tue Nov  4 07:32:24 2014
New Revision: 1636515

URL: http://svn.apache.org/r1636515
Log:
Remove comments after re-ordering, re-order static fields.

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

Modified: commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java?rev=1636515&r1=1636514&r2=1636515&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java (original)
+++ commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java Tue Nov  4 07:32:24 2014
@@ -156,8 +156,6 @@ public class DaitchMokotoffSoundex imple
         }
     }
 
-    // static identifiers used during parsing of the rule file
-
     /**
      * Inner class for storing rules.
      */
@@ -210,11 +208,7 @@ public class DaitchMokotoffSoundex imple
 
     private static final String COMMENT = "//";
     private static final String DOUBLE_QUOTE = "\"";
-    /** Folding rules. */
-    private static final Map<Character, Character> FOLDINGS = new HashMap<Character, Character>();
 
-    /** The code length of a DM soundex value. */
-    private static final int MAX_LENGTH = 6;
     private static final String MULTILINE_COMMENT_END = "*/";
 
     private static final String MULTILINE_COMMENT_START = "/*";
@@ -222,9 +216,15 @@ public class DaitchMokotoffSoundex imple
     /** The resource file containing the replacement and folding rules */
     private static final String RESOURCE_FILE = "org/apache/commons/codec/language/dmrules.txt";
 
+    /** The code length of a DM soundex value. */
+    private static final int MAX_LENGTH = 6;
+
     /** Transformation rules indexed by the first character of their pattern. */
     private static final Map<Character, List<Rule>> RULES = new HashMap<Character, List<Rule>>();
 
+    /** Folding rules. */
+    private static final Map<Character, Character> FOLDINGS = new HashMap<Character, Character>();
+
     static {
         final InputStream rulesIS = DaitchMokotoffSoundex.class.getClassLoader().getResourceAsStream(RESOURCE_FILE);
         if (rulesIS == null) {
@@ -390,8 +390,6 @@ public class DaitchMokotoffSoundex imple
         return sb.toString();
     }
 
-    // -- BEGIN STATIC METHODS --//
-
     /**
      * Encodes an Object using the Daitch-Mokotoff soundex algorithm without branching.
      * <p>
@@ -438,8 +436,6 @@ public class DaitchMokotoffSoundex imple
         return soundex(source, false)[0];
     }
 
-    // -- BEGIN INNER CLASSES --//
-
     /**
      * Encodes a String using the Daitch-Mokotoff soundex algorithm with branching.
      * <p>