src/share/classes/javax/lang/model/AnnotatedConstruct.java

Print this page

        

*** 49,59 **** * <ul> * * <li> for an invocation of {@code getAnnotation(Class<T>)} or * {@code getAnnotationMirrors()}, <i>E</i>'s annotations contain <i>A</i>. * ! * <li> for an invocation of getAnnotationsByType(Class<T>), * <i>E</i>'s annotations either contain <i>A</i> or, if the type of * <i>A</i> is repeatable, contain exactly one annotation whose value * element contains <i>A</i> and whose type is the containing * annotation type of <i>A</i>'s type. * --- 49,59 ---- * <ul> * * <li> for an invocation of {@code getAnnotation(Class<T>)} or * {@code getAnnotationMirrors()}, <i>E</i>'s annotations contain <i>A</i>. * ! * <li> for an invocation of {@code getAnnotationsByType(Class<T>)}, * <i>E</i>'s annotations either contain <i>A</i> or, if the type of * <i>A</i> is repeatable, contain exactly one annotation whose value * element contains <i>A</i> and whose type is the containing * annotation type of <i>A</i>'s type. *