shishkovilja commented on code in PR #13090:
URL: https://github.com/apache/ignite/pull/13090#discussion_r3161968499


##########
modules/codegen/src/main/java/org/apache/ignite/internal/MessageProcessor.java:
##########
@@ -112,8 +115,16 @@ public class MessageProcessor extends AbstractProcessor {
 
             List<VariableElement> fields = orderedFields(clazz);
 
-            if (!fields.isEmpty() || emptyMsgs.stream().anyMatch(t -> 
processingEnv.getTypeUtils().isAssignable(clazz.asType(), t)))
-                msgFields.put(clazz, fields);
+            if (fields.isEmpty() && emptyMsgs.stream().noneMatch(t -> 
processingEnv.getTypeUtils().isAssignable(clazz.asType(), t))) {
+                processingEnv.getMessager().printMessage(
+                    Diagnostic.Kind.ERROR,
+                    "Message class doesn't have any ordered fields." +

Review Comment:
   ```suggestion
                       "Message class doesn't have any ordered fields. " +
   ```



-- 
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]

Reply via email to