Skip to content

Commit 2ea9752

Browse files
committed
endpoints - Fixed issue on annotation processing error when using a parameterized class in annotations value
1 parent b717a76 commit 2ea9752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restx-core-annotation-processor/src/main/java/restx/annotations/processor/RestxAnnotationProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public static AnnotationFieldKind valueOf(ProcessingEnvironment processingEnv, T
170170
return PRIMITIVE;
171171
} else if(String.class.getCanonicalName().equals(componentType.toString())) {
172172
return STRING;
173-
} else if(Class.class.getCanonicalName().equals(componentType.toString())) {
173+
} else if(Class.class.getCanonicalName().equals(TypeHelper.rawTypeFrom(componentType.toString()))) {
174174
return CLASS;
175175
} else {
176176
ImmutableList<String> superTypesClassNames = FluentIterable.from(processingEnv.getTypeUtils().directSupertypes(componentType))

0 commit comments

Comments
 (0)