diff --git a/src/test/java/org/apache/commons/collections4/MultiMapUtilsTest.java b/src/test/java/org/apache/commons/collections4/MultiMapUtilsTest.java index 39a6c2bfee..abcb895501 100644 --- a/src/test/java/org/apache/commons/collections4/MultiMapUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/MultiMapUtilsTest.java @@ -128,7 +128,7 @@ public void testGetValuesAsSet() { public void testGetValuesAsBag() { assertNull(MultiMapUtils.getValuesAsBag(null, "key1")); - final String values[] = { "v1", "v2", "v3" }; + final String[] values = { "v1", "v2", "v3" }; final MultiValuedMap map = new ArrayListValuedHashMap<>(); for (final String val : values) { map.put("key1", val); diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractCellProducerTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractCellProducerTest.java index 8433161d1d..6591d14e44 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractCellProducerTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractCellProducerTest.java @@ -80,7 +80,7 @@ public final void testForEachCellPredicates() { @Test public final void testEmptyCellProducer() { final CellProducer empty = createEmptyProducer(); - final int ary[] = empty.asIndexArray(); + final int[] ary = empty.asIndexArray(); assertEquals(0, ary.length); assertTrue(empty.forEachCell((i, j) -> { fail("forEachCell consumer should not be called"); diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractIndexProducerTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractIndexProducerTest.java index 917f361a2d..868982d2a6 100644 --- a/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractIndexProducerTest.java +++ b/src/test/java/org/apache/commons/collections4/bloomfilter/AbstractIndexProducerTest.java @@ -152,7 +152,7 @@ public final void testForEachIndexPredicates() { @Test public final void testEmptyProducer() { final IndexProducer empty = createEmptyProducer(); - final int ary[] = empty.asIndexArray(); + final int[] ary = empty.asIndexArray(); assertEquals(0, ary.length); assertTrue(empty.forEachIndex(i -> { throw new AssertionError("forEach predictate should not be called"); diff --git a/src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java b/src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java index 89965c6996..36925c5a83 100644 --- a/src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java +++ b/src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java @@ -38,7 +38,7 @@ public class FixedOrderComparatorTest extends AbstractComparatorTest { /** * Top cities of the world, by population including metro areas. */ - private static final String topCities[] = { + private static final String[] topCities = { "Tokyo", "Mexico City", "Mumbai",