Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test
- {
- @javax.annotation.Nullable
- @Deprecated
- public static void main(String[] args) throws Exception
- {
- java.lang.reflect.Method m = Test.class.getMethod("main", String[].class);
- System.out.println(m.getName());
- for (java.lang.annotation.Annotation a : m.getAnnotations())
- {
- System.out.println(" " + a.toString());
- }
- }
- }
- C:\Users\Lex\Desktop\asdf>java -cp build\libs\asdf.jar Test
- main
- @java.lang.Deprecated()
- C:\Users\Lex\Desktop\asdf>java -cp build\libs\asdf.jar;jsr305-1.3.9.jar Test
- main
- @javax.annotation.Nullable()
- @java.lang.Deprecated()
Advertisement
Add Comment
Please, Sign In to add comment