Skip to content

Commit 0fdd685

Browse files
committed
Add Checkstyle UnnecessaryParentheses
1 parent e1b43fa commit 0fdd685

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/conf/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ limitations under the License.
8484
<module name="SuperClone" />
8585
<module name="SuperFinalize" />
8686
<module name="TypecastParenPad" />
87+
<module name="UnnecessaryParentheses" />
8788
<module name="UnusedImports" />
8889
<module name="UpperEll" />
8990
<module name="WhitespaceAfter" />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public String metaphone(final String txt) {
262262
code.append('K');
263263
break;
264264
}
265-
if (!isNextChar(local, n, 'H') || (n == 0 && wdsz >= 3 && isVowel(local, 2))) { // CH consonant -> K consonant
265+
if (!isNextChar(local, n, 'H') || n == 0 && wdsz >= 3 && isVowel(local, 2)) { // CH consonant -> K consonant
266266
code.append('K');
267267
} else {
268268
code.append('X'); // CHvowel -> X

0 commit comments

Comments
 (0)