Skip to content
Permalink
Browse files

endpoints - Fixed annotation processor issue where annotation returns…

… an array of parameterized types
  • Loading branch information...
fcamblor committed Feb 10, 2018
1 parent 1ae6b58 commit d9f75ff2d906da63387cac5a2c6b4fec6e9b21c1
@@ -633,7 +633,10 @@ String getValueCodeInstanciation() {
if(AnnotationFieldKind.ANNOTATION.equals(this.kind)) {
return "throw new java.lang.UnsupportedOperationException(\"Unsupported annotation field type\")";
} else if(isArray) {
return String.format("return new %s[]{ %s }", type, Joiner.on(", ").join((List)value));
return String.format("return new %s[]{ %s }",
// Arrays cannot be parameterized
TypeHelper.rawTypeFrom(type.toString()),
Joiner.on(", ").join((List)value));
} else {
return "return "+kind.transformSingleValueToExpression(value, this);
}

0 comments on commit d9f75ff

Please sign in to comment.
You can’t perform that action at this time.