Skip to content

Commit

Permalink
remove unnecessary Object wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmay-bhat committed Jan 15, 2024
1 parent c1d2008 commit cb6297c
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 @@ -46,7 +46,7 @@ public abstract class DeleteFileIndexTestBase<

@Parameters(name = "formatVersion = {0}")
public static List<Object> parameters() {
return Arrays.asList(new Object[] {2});
return Arrays.asList(2);
}

static final DeleteFile FILE_A_POS_1 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public abstract class ScanPlanningAndReportingTestBase<

@Parameters(name = "formatVersion = {0}")
public static List<Object> parameters() {
return Arrays.asList(new Object[] {2});
return Arrays.asList(2);
}

protected abstract ScanT newScan(Table table);
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/java/org/apache/iceberg/TestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public class TestBase {

@Parameters(name = "formatVersion = {0}")
protected static List<Object> parameters() {
return Arrays.asList(new Object[] {1}, new Object[] {2});
return Arrays.asList(1, 2);
}

@Parameter protected int formatVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class TestLocalFilterFiles

@Parameters(name = "formatVersion = {0}")
public static List<Object> parameters() {
return Arrays.asList(new Object[] {1}, new Object[] {2});
return Arrays.asList(1, 2);
}

@Override
Expand Down

0 comments on commit cb6297c

Please sign in to comment.