@ SafeVarargs private static void checkNoAnnotations ( Method method , Class < ? extends Annotation > foundAn , Class < ? extends Annotation > ... disallowedAn ) { for ( Class < ? extends Annotation > an : disallowedAn ) { if ( method . isAnnotationPresent ( an ) ) { throw new EventsException ( "Method " + Utils . methodToString ( method ) + " marked with @" + foundAn . getSimpleName ( ) + " cannot be marked with @" + an . getSimpleName ( ) ) ; } } }
Checks that no given annotations are present on given method