@@ -54,8 +54,9 @@ public abstract class AnnotationVisitor {
5454 /**
5555 * Constructs a new {@link AnnotationVisitor}.
5656 *
57- * @param api the ASM API version implemented by this visitor. Must be one
58- * of {@link Opcodes#ASM4}.
57+ * @param api
58+ * the ASM API version implemented by this visitor. Must be one
59+ * of {@link Opcodes#ASM4}.
5960 */
6061 public AnnotationVisitor (final int api ) {
6162 this (api , null );
@@ -64,30 +65,35 @@ public AnnotationVisitor(final int api) {
6465 /**
6566 * Constructs a new {@link AnnotationVisitor}.
6667 *
67- * @param api the ASM API version implemented by this visitor. Must be one
68- * of {@link Opcodes#ASM4}.
69- * @param av the annotation visitor to which this visitor must delegate
70- * method calls. May be null.
68+ * @param api
69+ * the ASM API version implemented by this visitor. Must be one
70+ * of {@link Opcodes#ASM4}.
71+ * @param av
72+ * the annotation visitor to which this visitor must delegate
73+ * method calls. May be null.
7174 */
7275 public AnnotationVisitor (final int api , final AnnotationVisitor av ) {
73- /* if (api != Opcodes.ASM4) {
76+ if (api != Opcodes .ASM4 ) {
7477 throw new IllegalArgumentException ();
75- }*/
78+ }
7679 this .api = api ;
7780 this .av = av ;
7881 }
7982
8083 /**
8184 * Visits a primitive value of the annotation.
8285 *
83- * @param name the value name.
84- * @param value the actual value, whose type must be {@link Byte},
85- * {@link Boolean}, {@link Character}, {@link Short}, {@link Integer}
86- * , {@link Long}, {@link Float}, {@link Double}, {@link String} or
87- * {@link Type} or OBJECT or ARRAY sort. This value can also be an
88- * array of byte, boolean, short, char, int, long, float or double
89- * values (this is equivalent to using {@link #visitArray visitArray}
90- * and visiting each array element in turn, but is more convenient).
86+ * @param name
87+ * the value name.
88+ * @param value
89+ * the actual value, whose type must be {@link Byte},
90+ * {@link Boolean}, {@link Character}, {@link Short},
91+ * {@link Integer} , {@link Long}, {@link Float}, {@link Double},
92+ * {@link String} or {@link Type} or OBJECT or ARRAY sort. This
93+ * value can also be an array of byte, boolean, short, char, int,
94+ * long, float or double values (this is equivalent to using
95+ * {@link #visitArray visitArray} and visiting each array element
96+ * in turn, but is more convenient).
9197 */
9298 public void visit (String name , Object value ) {
9399 if (av != null ) {
@@ -98,9 +104,12 @@ public void visit(String name, Object value) {
98104 /**
99105 * Visits an enumeration value of the annotation.
100106 *
101- * @param name the value name.
102- * @param desc the class descriptor of the enumeration class.
103- * @param value the actual enumeration value.
107+ * @param name
108+ * the value name.
109+ * @param desc
110+ * the class descriptor of the enumeration class.
111+ * @param value
112+ * the actual enumeration value.
104113 */
105114 public void visitEnum (String name , String desc , String value ) {
106115 if (av != null ) {
@@ -111,12 +120,14 @@ public void visitEnum(String name, String desc, String value) {
111120 /**
112121 * Visits a nested annotation value of the annotation.
113122 *
114- * @param name the value name.
115- * @param desc the class descriptor of the nested annotation class.
123+ * @param name
124+ * the value name.
125+ * @param desc
126+ * the class descriptor of the nested annotation class.
116127 * @return a visitor to visit the actual nested annotation value, or
117- * <tt>null</tt> if this visitor is not interested in visiting
118- * this nested annotation. <i>The nested annotation value must be
119- * fully visited before calling other methods on this annotation
128+ * <tt>null</tt> if this visitor is not interested in visiting this
129+ * nested annotation. <i>The nested annotation value must be fully
130+ * visited before calling other methods on this annotation
120131 * visitor</i>.
121132 */
122133 public AnnotationVisitor visitAnnotation (String name , String desc ) {
@@ -132,10 +143,11 @@ public AnnotationVisitor visitAnnotation(String name, String desc) {
132143 * can be passed as value to {@link #visit visit}. This is what
133144 * {@link ClassReader} does.
134145 *
135- * @param name the value name.
146+ * @param name
147+ * the value name.
136148 * @return a visitor to visit the actual array value elements, or
137- * <tt>null</tt> if this visitor is not interested in visiting
138- * these values. The 'name' parameters passed to the methods of this
149+ * <tt>null</tt> if this visitor is not interested in visiting these
150+ * values. The 'name' parameters passed to the methods of this
139151 * visitor are ignored. <i>All the array values must be visited
140152 * before calling other methods on this annotation visitor</i>.
141153 */
0 commit comments