Normalize array type declarations

This commit is contained in:
Gary Gregory 2023-08-23 08:42:23 -04:00
parent 265ca720b5
commit ea78167069
4 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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");

View File

@ -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");

View File

@ -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",