This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push:
new 19b60fad Reuse constant
19b60fad is described below
commit 19b60fad7edeeff3c096b0cca0653d1f0718d910
Author: Gary Gregory <[email protected]>
AuthorDate: Thu May 21 20:49:45 2026 -0400
Reuse constant
---
.../java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
b/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
index 881b78cd..cbade2b6 100644
--- a/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
+++ b/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
@@ -462,7 +462,7 @@ public class DaitchMokotoffSoundex implements StringEncoder
{
if (branching) {
nextBranches.clear();
}
- final String[] replacements =
rule.getReplacements(inputContext, lastChar == '\0');
+ final String[] replacements =
rule.getReplacements(inputContext, lastChar == NUL);
final boolean branchingRequired = replacements.length > 1
&& branching;
for (final Branch branch : currentBranches) {
for (final String nextReplacement : replacements) {