Skip to content

Commit

Permalink
Add Checkstyle UnnecessaryParentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Feb 9, 2025
1 parent e1b43fa commit 0fdd685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/conf/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ limitations under the License.
<module name="SuperClone" />
<module name="SuperFinalize" />
<module name="TypecastParenPad" />
<module name="UnnecessaryParentheses" />
<module name="UnusedImports" />
<module name="UpperEll" />
<module name="WhitespaceAfter" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public String metaphone(final String txt) {
code.append('K');
break;
}
if (!isNextChar(local, n, 'H') || (n == 0 && wdsz >= 3 && isVowel(local, 2))) { // CH consonant -> K consonant
if (!isNextChar(local, n, 'H') || n == 0 && wdsz >= 3 && isVowel(local, 2)) { // CH consonant -> K consonant
code.append('K');
} else {
code.append('X'); // CHvowel -> X
Expand Down

0 comments on commit 0fdd685

Please sign in to comment.