mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-27 13:36:33 +00:00
Normalize array type declarations
This commit is contained in:
parent
265ca720b5
commit
ea78167069
@ -128,7 +128,7 @@ public class MultiMapUtilsTest {
|
||||
public void testGetValuesAsBag() {
|
||||
assertNull(MultiMapUtils.getValuesAsBag(null, "key1"));
|
||||
|
||||
final String values[] = { "v1", "v2", "v3" };
|
||||
final String[] values = { "v1", "v2", "v3" };
|
||||
final MultiValuedMap<String, String> map = new ArrayListValuedHashMap<>();
|
||||
for (final String val : values) {
|
||||
map.put("key1", val);
|
||||
|
@ -80,7 +80,7 @@ public abstract class AbstractCellProducerTest extends AbstractIndexProducerTest
|
||||
@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");
|
||||
|
@ -152,7 +152,7 @@ public abstract class AbstractIndexProducerTest {
|
||||
@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");
|
||||
|
@ -38,7 +38,7 @@ public class FixedOrderComparatorTest extends AbstractComparatorTest<String> {
|
||||
/**
|
||||
* Top cities of the world, by population including metro areas.
|
||||
*/
|
||||
private static final String topCities[] = {
|
||||
private static final String[] topCities = {
|
||||
"Tokyo",
|
||||
"Mexico City",
|
||||
"Mumbai",
|
||||
|
Loading…
x
Reference in New Issue
Block a user