tkalkirill commented on code in PR #4170:
URL: https://github.com/apache/ignite-3/pull/4170#discussion_r1701746448
##########
modules/network-annotation-processor/src/main/java/org/apache/ignite/internal/network/processor/TransferableObjectProcessor.java:
##########
@@ -351,4 +354,33 @@ private void writeServiceFile(String packageName, TypeSpec
registryInitializer)
throw new ProcessingException(e.getMessage(), e);
}
}
+
+ /** Generates utility classes for {@link Enum} in network messages. */
+ private void generateEnumTransferableUtils(Collection<MessageClass>
messageClasses, MessageGroupWrapper messageGroup) {
+ List<MessageClass> serializableMessages =
collectAutoSerializableMessageClasses(messageClasses);
+
+ if (serializableMessages.isEmpty()) {
+ return;
+ }
+
+ var enumMethodsGenerator = new EnumMethodsGenerator(processingEnv);
+
+ Set<TypeMirror> enumTypes =
enumMethodsGenerator.collectEnums(messageClasses);
+
+ if (enumTypes.isEmpty()) {
+ return;
+ }
Review Comment:
Ok, why not.
--
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]