Skip to content

Commit e515180

Browse files
committed
Private class DaitchMokotoffSoundex.Branch methods private that can be
1 parent ff49d98 commit e515180

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private Branch() {
9090
*
9191
* @return a new, identical branch
9292
*/
93-
public Branch createBranch() {
93+
private Branch createBranch() {
9494
final Branch branch = new Branch();
9595
branch.builder.append(toString());
9696
branch.lastReplacement = this.lastReplacement;
@@ -112,7 +112,7 @@ public boolean equals(final Object other) {
112112
/**
113113
* Finish this branch by appending '0's until the maximum code length has been reached.
114114
*/
115-
public void finish() {
115+
private void finish() {
116116
while (builder.length() < MAX_LENGTH) {
117117
builder.append('0');
118118
cachedString = null;
@@ -132,7 +132,7 @@ public int hashCode() {
132132
* @param forceAppend
133133
* indicates if the default processing shall be overridden
134134
*/
135-
public void processNextReplacement(final String replacement, final boolean forceAppend) {
135+
private void processNextReplacement(final String replacement, final boolean forceAppend) {
136136
final boolean append = lastReplacement == null || !lastReplacement.endsWith(replacement) || forceAppend;
137137

138138
if (append && builder.length() < MAX_LENGTH) {

0 commit comments

Comments
 (0)