Skip to content

Commit 19b60fa

Browse files
committed
Reuse constant
1 parent 9676e23 commit 19b60fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ private String[] soundex(final String source, final boolean branching) {
462462
if (branching) {
463463
nextBranches.clear();
464464
}
465-
final String[] replacements = rule.getReplacements(inputContext, lastChar == '\0');
465+
final String[] replacements = rule.getReplacements(inputContext, lastChar == NUL);
466466
final boolean branchingRequired = replacements.length > 1 && branching;
467467
for (final Branch branch : currentBranches) {
468468
for (final String nextReplacement : replacements) {

0 commit comments

Comments
 (0)