Skip to content

Commit 2596907

Browse files
committed
Add Checkstyle UnnecessaryParentheses
1 parent b0f1268 commit 2596907

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/conf/checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ limitations under the License.
9191
<module name="SuperFinalize" />
9292
<module name="TypecastParenPad" />
9393
<module name="UpperEll" />
94+
<module name="UnnecessaryParentheses" />
9495
<module name="UnusedImports"/>
9596
<module name="WhitespaceAfter"/>
9697
<module name="WhitespaceAround"/>

src/test/java/org/apache/commons/collections4/MapUtilsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ public void testGetByteValue() {
416416
assertEquals(val, MapUtils.getByteValue(in, "key", val), 0);
417417
assertEquals(val, MapUtils.getByteValue(in, "key"), 0);
418418
assertEquals(val, MapUtils.getByteValue(in, "noKey", val), 0);
419-
assertEquals(val, MapUtils.getByteValue(in, "noKey", key -> ((byte) 100)), 0);
419+
assertEquals(val, MapUtils.getByteValue(in, "noKey", key -> (byte) 100), 0);
420420
assertEquals(0, MapUtils.getByteValue(in, "noKey"), 0);
421421
assertEquals(val, MapUtils.getByte(in, "key", val), 0);
422422
assertEquals(val, MapUtils.getByte(in, "noKey", val), 0);

src/test/java/org/apache/commons/collections4/bloomfilter/LayeredBloomFilterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public void testCleanup() {
235235
final LayerManager<NumberedBloomFilter> layerManager = LayerManager.<NumberedBloomFilter>builder()
236236
.setSupplier(() -> new NumberedBloomFilter(getTestShape(), 3, sequence[0]++))
237237
.setExtendCheck(ExtendCheck.neverAdvance())
238-
.setCleanup(ll -> ll.removeIf(f -> (f.value-- == 0))).get();
238+
.setCleanup(ll -> ll.removeIf(f -> f.value-- == 0)).get();
239239
final LayeredBloomFilter<NumberedBloomFilter> underTest = new LayeredBloomFilter<>(getTestShape(), layerManager);
240240
assertEquals(1, underTest.getDepth());
241241
underTest.merge(TestingHashers.randomHasher());

0 commit comments

Comments
 (0)