|
|
@ -281,6 +281,7 @@ public class LazyStringArrayListTest extends TestCase { |
|
|
|
assertGenericListImmutable(byteArrayList, byteArrayList.get(0)); |
|
|
|
assertGenericListImmutable(byteArrayList, byteArrayList.get(0)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
private static <T> void assertGenericListImmutable(List<T> list, T value) { |
|
|
|
private static <T> void assertGenericListImmutable(List<T> list, T value) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
list.add(value); |
|
|
|
list.add(value); |
|
|
|