Skip to content

Instantly share code, notes, and snippets.

@vaskoz
Last active December 19, 2015 23:49
Show Gist options
  • Save vaskoz/6037239 to your computer and use it in GitHub Desktop.
Save vaskoz/6037239 to your computer and use it in GitHub Desktop.
@interface Foo {}
interface Bar {}
public class Annotation {
public static void main(String[] args) {
System.out.println("Foo annotation super interfaces");
for (Class<?> klazz : Foo.class.getInterfaces())
System.out.println(klazz);
System.out.println("Bar interface super interfaces");
for (Class<?> klazz : Bar.class.getInterfaces())
System.out.println(klazz);
}
}
Foo annotation super interfaces
interface java.lang.annotation.Annotation
Bar interface super interfaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment