Created
September 2, 2016 11:00
-
-
Save pwittchen/a727943ea2733faedf83986f8f310444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(final Annotation annotation : this.getClass().getAnnotations()) { | |
final Class<? extends Annotation> annotationType = annotation.annotationType(); | |
final boolean classIsAnnotated = annotationType.equals(MyCustomAnnotation.class); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment