Suppress the last unchecked warning.
Likely to be java language issue. Varargs are considered arrays, thus using generic with varargs will cause unchecked warning about generic array creation.
This commit is contained in:
parent
81fe52fbd4
commit
f4f31e73f2
@ -281,6 +281,7 @@ public class LazyStringArrayListTest extends TestCase {
|
||||
assertGenericListImmutable(byteArrayList, byteArrayList.get(0));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private static <T> void assertGenericListImmutable(List<T> list, T value) {
|
||||
try {
|
||||
list.add(value);
|
||||
|
Loading…
Reference in New Issue
Block a user