Files
spring-loaded/testdata/src/main/java/iri/JLCIsAnnotationPresent2.java
2014-01-15 11:36:24 -08:00

23 lines
521 B
Java

package iri;
import java.lang.reflect.Method;
//@Deprecated
public class JLCIsAnnotationPresent2 extends FormattingHelper {
public JLCIsAnnotationPresent2() {
}
public String run() throws Exception {
Method m = Class.class.getMethod("isAnnotationPresent", Class.class);
boolean b = (Boolean) m.invoke(JLCIsAnnotationPresent2.class, Deprecated.class);
return Boolean.toString(b);
}
public static void main(String[] argv) throws Exception {
System.out.println(new JLCIsAnnotationPresent2().run());
}
}