Skip to content

Commit bab38c8

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Fix a warning about an inexact type for a varargs parameter.
RELNOTES=n/a PiperOrigin-RevId: 897299495
1 parent 6bc7ae6 commit bab38c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/guava-tests/test/com/google/common/base/JoinerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private static void checkResult(
246246

247247
int num = partsArray.length - 2;
248248
if (num >= 0) {
249-
@Nullable Integer[] rest = new @Nullable Integer[num];
249+
@Nullable Object[] rest = new @Nullable Object[num];
250250
for (int i = 0; i < num; i++) {
251251
rest[i] = partsArray[i + 2];
252252
}

guava-tests/test/com/google/common/base/JoinerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private static void checkResult(
246246

247247
int num = partsArray.length - 2;
248248
if (num >= 0) {
249-
@Nullable Integer[] rest = new @Nullable Integer[num];
249+
@Nullable Object[] rest = new @Nullable Object[num];
250250
for (int i = 0; i < num; i++) {
251251
rest[i] = partsArray[i + 2];
252252
}

0 commit comments

Comments
 (0)