Skip to content
Snippets Groups Projects
Commit 6e779b83 authored by Eric Bruneton's avatar Eric Bruneton
Browse files

Revert bug fix.

parent 6e219625
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,9 @@ public class CheckAnnotationAdapter extends AnnotationVisitor {
|| value instanceof double[])) {
throw new IllegalArgumentException("Invalid annotation value");
}
if (value instanceof Type && ((Type) value).getSort() == Type.METHOD) {
if (value instanceof Type
&& ((Type) value).getSort() != Type.OBJECT
&& ((Type) value).getSort() != Type.ARRAY) {
throw new IllegalArgumentException("Invalid annotation value");
}
super.visit(name, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment