Skip to content

Commit 88bd67c

Browse files
committed
Upgraded ASM to post 9.6 hash bde266f0d59dd12739ad15a39f1da43a61143eed
1 parent e9ecf8e commit 88bd67c

22 files changed

+419
-195
lines changed

src/main/java/rife/asm/AnnotationVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public AnnotationVisitor visitAnnotation(final String name, final String descrip
144144
/**
145145
* Visits an array value of the annotation. Note that arrays of primitive values (such as byte,
146146
* boolean, short, char, int, long, float or double) can be passed as value to {@link #visit
147-
* visit}. This is what {@link ClassReader} does for non-empty arrays of primitive values.
147+
* visit}. This is what {@link ClassReader} does for non empty arrays of primitive values.
148148
*
149149
* @param name the value name.
150150
* @return a visitor to visit the actual array value elements, or {@literal null} if this visitor

src/main/java/rife/asm/AnnotationWriter.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static AnnotationWriter create(
144144
// Write type_index and reserve space for num_element_value_pairs.
145145
annotation.putShort(symbolTable.addConstantUtf8(descriptor)).putShort(0);
146146
return new AnnotationWriter(
147-
symbolTable, /* useNamedValues = */ true, annotation, previousAnnotation);
147+
symbolTable, /* useNamedValues= */ true, annotation, previousAnnotation);
148148
}
149149

150150
/**
@@ -179,7 +179,7 @@ static AnnotationWriter create(
179179
// Write type_index and reserve space for num_element_value_pairs.
180180
typeAnnotation.putShort(symbolTable.addConstantUtf8(descriptor)).putShort(0);
181181
return new AnnotationWriter(
182-
symbolTable, /* useNamedValues = */ true, typeAnnotation, previousAnnotation);
182+
symbolTable, /* useNamedValues= */ true, typeAnnotation, previousAnnotation);
183183
}
184184

185185
// -----------------------------------------------------------------------------------------------
@@ -284,7 +284,7 @@ public AnnotationVisitor visitAnnotation(final String name, final String descrip
284284
}
285285
// Write tag and type_index, and reserve 2 bytes for num_element_value_pairs.
286286
annotation.put12('@', symbolTable.addConstantUtf8(descriptor)).putShort(0);
287-
return new AnnotationWriter(symbolTable, /* useNamedValues = */ true, annotation, null);
287+
return new AnnotationWriter(symbolTable, /* useNamedValues= */ true, annotation, null);
288288
}
289289

290290
@Override
@@ -303,7 +303,7 @@ public AnnotationVisitor visitArray(final String name) {
303303
// visit the array elements. Its num_element_value_pairs will correspond to the number of array
304304
// elements and will be stored in what is in fact num_values.
305305
annotation.put12('[', 0);
306-
return new AnnotationWriter(symbolTable, /* useNamedValues = */ false, annotation, null);
306+
return new AnnotationWriter(symbolTable, /* useNamedValues= */ false, annotation, null);
307307
}
308308

309309
@Override
@@ -321,7 +321,7 @@ public void visitEnd() {
321321

322322
/**
323323
* Returns the size of a Runtime[In]Visible[Type]Annotations attribute containing this annotation
324-
* and all its <i>predecessors</i> (see {@link #previousAnnotation}). Also adds the attribute name
324+
* and all its <i>predecessors</i> (see {@link #previousAnnotation}. Also adds the attribute name
325325
* to the constant pool of the class (if not null).
326326
*
327327
* @param attributeName one of "Runtime[In]Visible[Type]Annotations", or {@literal null}.
@@ -345,7 +345,7 @@ int computeAnnotationsSize(final String attributeName) {
345345

346346
/**
347347
* Returns the size of the Runtime[In]Visible[Type]Annotations attributes containing the given
348-
* annotations and all their <i>predecessors</i> (see {@link #previousAnnotation}). Also adds the
348+
* annotations and all their <i>predecessors</i> (see {@link #previousAnnotation}. Also adds the
349349
* attribute names to the constant pool of the class (if not null).
350350
*
351351
* @param lastRuntimeVisibleAnnotation The last runtime visible annotation of a field, method or
@@ -395,7 +395,7 @@ static int computeAnnotationsSize(
395395

396396
/**
397397
* Puts a Runtime[In]Visible[Type]Annotations attribute containing this annotations and all its
398-
* <i>predecessors</i> (see {@link #previousAnnotation}) in the given ByteVector. Annotations are
398+
* <i>predecessors</i> (see {@link #previousAnnotation} in the given ByteVector. Annotations are
399399
* put in the same order they have been visited.
400400
*
401401
* @param attributeNameIndex the constant pool index of the attribute name (one of
@@ -427,7 +427,7 @@ void putAnnotations(final int attributeNameIndex, final ByteVector output) {
427427

428428
/**
429429
* Puts the Runtime[In]Visible[Type]Annotations attributes containing the given annotations and
430-
* all their <i>predecessors</i> (see {@link #previousAnnotation}) in the given ByteVector.
430+
* all their <i>predecessors</i> (see {@link #previousAnnotation} in the given ByteVector.
431431
* Annotations are put in the same order they have been visited.
432432
*
433433
* @param symbolTable where the constants used in the AnnotationWriter instances are stored.

src/main/java/rife/asm/Attribute.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
package rife.asm;
2929

3030
/**
31-
* A non-standard class, field, method or Code attribute, as defined in the Java Virtual Machine
31+
* A non standard class, field, method or Code attribute, as defined in the Java Virtual Machine
3232
* Specification (JVMS).
3333
*
3434
* @see <a href= "https://docs.oracle.com/javase/specs/jvms/se9/html/jvms-4.html#jvms-4.7">JVMS

0 commit comments

Comments
 (0)