public static < A extends Annotation > A getDeclaredAnnotation ( Class < ? > onClass , Class < A > annotationType ) { return getAnnotation ( onClass . getDeclaredAnnotations ( ) , annotationType ) ; }
Get the declared annotation ignoring any inherited annotations