private static boolean checkAnnotation ( AnnotationsAttribute invisible , AnnotationsAttribute visible , String annotationName ) { boolean exist1 = false ; boolean exist2 = false ; if ( invisible != null ) { exist1 = invisible . getAnnotation ( annotationName ) != null ; } if ( visible != null ) { exist2 = visible . getAnnotation ( annotationName ) != null ; } return exist1 || exist2 ; }
Checks if an annotation with the given name is either in the invisible or in the visible annotation attributes .