private void storeTagAnnotation ( Annotation anno ) { Class < ? extends Annotation > annoType = anno . annotationType ( ) ; Annotation [ ] tags = annoType . getAnnotations ( ) ; for ( Annotation tag : tags ) { Class < ? extends Annotation > tagType = tag . annotationType ( ) ; if ( WAIVE_TAG_TYPES . contains ( tagType ) ) { continue ; } Set < Annotation > tagged = tagAnnotations . get ( tagType ) ; if ( null == tagged ) { tagged = new HashSet <> ( ) ; tagAnnotations . put ( tagType , tagged ) ; } tagged . add ( anno ) ; } }
Walk through anno s tag annotations