Remove some unnecessary warning suppression annotations

This commit is contained in:
Ben Liblit 2017-08-27 20:46:53 -05:00 committed by Manu Sridharan
parent 559c577093
commit 5b6e6aefa0
4 changed files with 0 additions and 4 deletions

View File

@ -16,7 +16,6 @@ public class Reflect3 {
public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
Class<?> c = Class.forName("java.util.Properties");
@SuppressWarnings("unchecked")
Hashtable<Object, Object> h = (Hashtable<Object, Object>) c.newInstance();
System.out.println(h.toString());
}

View File

@ -20,7 +20,6 @@ import java.lang.reflect.InvocationTargetException;
*
*/
public class Reflect7 {
@SuppressWarnings("unchecked")
public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException,
IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException {
Class<FilePermission> c = (Class<FilePermission>) Class.forName("java.io.FilePermission");

View File

@ -247,7 +247,6 @@ public class ReflectionTest extends WalaTestCase {
Assert.assertTrue(succNodes.isEmpty());
}
@SuppressWarnings("unchecked")
@Test
public void testReflect7() throws Exception {
AnalysisScope scope = findOrCreateAnalysisScope();

View File

@ -104,7 +104,6 @@ public class AnnotationTest extends WalaTestCase {
}
@SuppressWarnings("unchecked")
@Test
public void testClassAnnotations3() throws Exception {