From 3c868d066b5efd780e6e56e355fe246a6af331f5 Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Wed, 14 Aug 2024 21:41:45 +0200 Subject: [PATCH] Add missing visitEnd call. --- .../annotation/AbstractAnnotationDescriptionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byte-buddy-dep/src/test/java/net/bytebuddy/description/annotation/AbstractAnnotationDescriptionTest.java b/byte-buddy-dep/src/test/java/net/bytebuddy/description/annotation/AbstractAnnotationDescriptionTest.java index c6b9bc4915d..4e48152d4cd 100644 --- a/byte-buddy-dep/src/test/java/net/bytebuddy/description/annotation/AbstractAnnotationDescriptionTest.java +++ b/byte-buddy-dep/src/test/java/net/bytebuddy/description/annotation/AbstractAnnotationDescriptionTest.java @@ -1202,7 +1202,7 @@ public void visit(int version, int access, String name, String signature, String if (allowIncompatibleDeclaration) { annotationVisitor.visitAnnotation("incompatibleEnumerationDeclaration", Type.getDescriptor(IncompatibleAnnotationProperty.class)).visitEnd(); AnnotationVisitor incompatibleAnnotationDeclarationArray = annotationVisitor.visitArray("incompatibleEnumerationDeclarationArray"); - incompatibleAnnotationDeclarationArray.visitAnnotation(null, Type.getDescriptor(IncompatibleAnnotationProperty.class)); + incompatibleAnnotationDeclarationArray.visitAnnotation(null, Type.getDescriptor(IncompatibleAnnotationProperty.class)).visitEnd(); incompatibleAnnotationDeclarationArray.visitEnd(); annotationVisitor.visitArray("incompatibleEnumerationDeclarationEmptyArray").visitEnd(); annotationVisitor.visitEnum("incompatibleAnnotationDeclaration", Type.getDescriptor(IncompatibleEnumerationProperty.class), FOO.toUpperCase());