Skip to content

Commit f208e2f

Browse files
committed
Trivial refactor: avoid using magic number
1 parent 97e6557 commit f208e2f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/org/codehaus/groovy/classgen/AsmClassGenerator.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,7 @@ private void visitRecordComponents(final ClassNode classNode) {
425425

426426
visitAnnotations(recordComponent, visitor);
427427

428-
// the int encoded value of the type reference is ALWAYS `318767104`
429-
// TODO Get the magic number `318767104` via `TypeReference.newXXX()`
430-
TypeReference typeRef = new TypeReference(318767104);
431-
428+
TypeReference typeRef = newTypeReference(FIELD);
432429
visitTypeAnnotations(type, visitor, typeRef, "", true);
433430

434431
visitor.visitEnd();

0 commit comments

Comments
 (0)