Skip to content

Commit 7a560b2

Browse files
committed
Remove unnecessary parentheses.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1436561 13f79535-47bb-0310-9956-ffa450edef68
1 parent a408bf6 commit 7a560b2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ int getMinRating(final int sumLength) {
184184

185185
if (sumLength <= FOUR) {
186186
minRating = FIVE;
187-
} else if ((sumLength >= FIVE) && (sumLength <= SEVEN)) {
187+
} else if (sumLength >= FIVE && sumLength <= SEVEN) {
188188
minRating = FOUR;
189-
} else if ((sumLength >= EIGHT) && (sumLength <= ELEVEN)) {
189+
} else if (sumLength >= EIGHT && sumLength <= ELEVEN) {
190190
minRating = THREE;
191191
} else if (sumLength == TWELVE) {
192192
minRating = TWO;
@@ -308,10 +308,10 @@ int leftToRightThenRightToLeftProcessing(final String name1, final String name2)
308308
}
309309

310310
name1LtRStart = name1.substring(i, i + 1);
311-
name1LtREnd = name1.substring(name1Size - i, (name1Size - i) + 1);
311+
name1LtREnd = name1.substring(name1Size - i, name1Size - i + 1);
312312

313313
name2RtLStart = name2.substring(i, i + 1);
314-
name2RtLEnd = name2.substring(name2Size - i, (name2Size - i) + 1);
314+
name2RtLEnd = name2.substring(name2Size - i, name2Size - i + 1);
315315

316316
// Left to right...
317317
if (name1LtRStart.equals(name2RtLStart)) {
@@ -416,7 +416,7 @@ String removeVowels(String name) {
416416

417417
// return isVowel(firstLetter) ? (firstLetter + name) : name;
418418
if (isVowel(firstLetter)) {
419-
return (firstLetter + name);
419+
return firstLetter + name;
420420
} else {
421421
return name;
422422
}

0 commit comments

Comments
 (0)