Skip to content

Commit

Permalink
Normalize array type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Aug 23, 2023
1 parent 265ca72 commit ea78167
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> map = new ArrayListValuedHashMap<>();
for (final String val : values) {
map.put("key1", val);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ea78167

Please sign in to comment.