Commit e26b7ece authored by ekuleshov's avatar ekuleshov
Browse files

arrays of primitives are allowed for annotation values

[[Split portion of a mixed commit.]]
parent a31c31ff
......@@ -64,7 +64,11 @@ public class CheckAnnotationAdapter implements AnnotationVisitor {
|| value instanceof Character || value instanceof Short
|| value instanceof Integer || value instanceof Long
|| value instanceof Float || value instanceof Double
|| value instanceof String || value instanceof Type))
|| value instanceof String || value instanceof Type
|| value instanceof byte[] || value instanceof boolean[]
|| value instanceof char[] || value instanceof short[]
|| value instanceof int[] || value instanceof long[]
|| value instanceof float[] || value instanceof double[]))
{
throw new IllegalArgumentException("Invalid annotation value");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment