Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 29, 2025
2 parents 3b9feb4 + 56b292a commit a83a6ed
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
*/
public class DaitchMokotoffSoundex implements StringEncoder {

/**
* The NUL character.
*/
private static final char NUL = '\0';

/**
* Inner class representing a branch during DM soundex encoding.
*/
Expand Down Expand Up @@ -461,7 +466,7 @@ private String[] soundex(final String source, final boolean branching) {
final Set<Branch> currentBranches = new LinkedHashSet<>();
currentBranches.add(new Branch());

char lastChar = '\0';
char lastChar = NUL;
for (int index = 0; index < input.length(); index++) {
final char ch = input.charAt(index);

Expand Down

0 comments on commit a83a6ed

Please sign in to comment.