Merge pull request #2835 from pherl/javaep

Suppress the last unchecked warning.
This commit is contained in:
Jisi Liu 2017-03-13 10:56:20 -07:00 committed by GitHub
commit ddfc86b1f7

View File

@ -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);