Remove some unnecessary warning suppression annotations
This commit is contained in:
parent
559c577093
commit
5b6e6aefa0
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -247,7 +247,6 @@ public class ReflectionTest extends WalaTestCase {
|
|||
Assert.assertTrue(succNodes.isEmpty());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test
|
||||
public void testReflect7() throws Exception {
|
||||
AnalysisScope scope = findOrCreateAnalysisScope();
|
||||
|
|
|
@ -104,7 +104,6 @@ public class AnnotationTest extends WalaTestCase {
|
|||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test
|
||||
public void testClassAnnotations3() throws Exception {
|
||||
|
||||
|
|
Loading…
Reference in New Issue