< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/reflect/Class_newInstance07.java

Print this page
rev 52509 : [mq]: graal

*** 37,47 **** private Class_newInstance() throws Exception { throw new Exception(); } } ! @SuppressWarnings("deprecation") public static boolean test(int i) throws IllegalAccessException, InstantiationException { if (i == 0) { return Class_newInstance.class.newInstance() != null; } return false; --- 37,47 ---- private Class_newInstance() throws Exception { throw new Exception(); } } ! @SuppressWarnings({"deprecation", "unused"}) public static boolean test(int i) throws IllegalAccessException, InstantiationException { if (i == 0) { return Class_newInstance.class.newInstance() != null; } return false;
< prev index next >