Skip to content

Commit 83af056

Browse files
committed
Remove comments after re-ordering, re-order static fields.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1636515 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9a65c1a commit 83af056

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ public String toString() {
156156
}
157157
}
158158

159-
// static identifiers used during parsing of the rule file
160-
161159
/**
162160
* Inner class for storing rules.
163161
*/
@@ -210,21 +208,23 @@ public String toString() {
210208

211209
private static final String COMMENT = "//";
212210
private static final String DOUBLE_QUOTE = "\"";
213-
/** Folding rules. */
214-
private static final Map<Character, Character> FOLDINGS = new HashMap<Character, Character>();
215211

216-
/** The code length of a DM soundex value. */
217-
private static final int MAX_LENGTH = 6;
218212
private static final String MULTILINE_COMMENT_END = "*/";
219213

220214
private static final String MULTILINE_COMMENT_START = "/*";
221215

222216
/** The resource file containing the replacement and folding rules */
223217
private static final String RESOURCE_FILE = "org/apache/commons/codec/language/dmrules.txt";
224218

219+
/** The code length of a DM soundex value. */
220+
private static final int MAX_LENGTH = 6;
221+
225222
/** Transformation rules indexed by the first character of their pattern. */
226223
private static final Map<Character, List<Rule>> RULES = new HashMap<Character, List<Rule>>();
227224

225+
/** Folding rules. */
226+
private static final Map<Character, Character> FOLDINGS = new HashMap<Character, Character>();
227+
228228
static {
229229
final InputStream rulesIS = DaitchMokotoffSoundex.class.getClassLoader().getResourceAsStream(RESOURCE_FILE);
230230
if (rulesIS == null) {
@@ -390,8 +390,6 @@ private String cleanup(final String input) {
390390
return sb.toString();
391391
}
392392

393-
// -- BEGIN STATIC METHODS --//
394-
395393
/**
396394
* Encodes an Object using the Daitch-Mokotoff soundex algorithm without branching.
397395
* <p>
@@ -438,8 +436,6 @@ public String encode(final String source) {
438436
return soundex(source, false)[0];
439437
}
440438

441-
// -- BEGIN INNER CLASSES --//
442-
443439
/**
444440
* Encodes a String using the Daitch-Mokotoff soundex algorithm with branching.
445441
* <p>

0 commit comments

Comments
 (0)