wernerdv commented on code in PR #12554:
URL: https://github.com/apache/ignite/pull/12554#discussion_r2642569113
##########
modules/codegen2/src/main/java/org/apache/ignite/internal/MessageProcessor.java:
##########
@@ -156,4 +198,14 @@ private List<VariableElement> orderedFields(TypeElement
type) {
return result;
}
+
+ /** */
+ private boolean enumField(Element el) {
+ TypeMirror elType = el.asType();
+
+ if (elType.getKind() != TypeKind.DECLARED)
+ return false;
+
+ return processingEnv.getTypeUtils().asElement(el.asType()).getKind()
== ElementKind.ENUM;
Review Comment:
```suggestion
return processingEnv.getTypeUtils().asElement(elType).getKind() ==
ElementKind.ENUM;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]