Skip to content

Commit 9608b6f

Browse files
committed
Remove String array from annotation value handler for primitives as it is not implied by the ASM spec.
1 parent 345800e commit 9608b6f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/description/annotation/AnnotationValue.java

-2
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,6 @@ public static AnnotationValue<String[], String[]> of(String... value) {
11081108
return of((float[]) value);
11091109
} else if (value instanceof double[]) {
11101110
return of((double[]) value);
1111-
} else if (value instanceof String[]) {
1112-
return of((String[]) value);
11131111
} else {
11141112
throw new IllegalArgumentException("Not a constant annotation value: " + value);
11151113
}

0 commit comments

Comments
 (0)