ibessonov commented on code in PR #4037:
URL: https://github.com/apache/ignite-3/pull/4037#discussion_r1663942527


##########
modules/network-annotation-processor/src/main/java/org/apache/ignite/internal/network/processor/messages/MessageBuilderGenerator.java:
##########
@@ -89,19 +93,29 @@ private List<MethodSpec> 
generateGettersAndSetters(MessageClass message, List<Ex
         for (ExecutableElement field : fields) {
             String fieldName = field.getSimpleName().toString();
 
-            TypeMirror type = field.getReturnType();
+            TypeMirror returnTypeMirror = field.getReturnType();
+            TypeName returnTypeName = TypeName.get(returnTypeMirror);
+
+            if (!isMethodReturnPrimitive(field) && 
isMethodReturnNullableValue(field)) {

Review Comment:
   Please use `methodReturns*` instead of `isMethodReturn*`, I struggle to read 
current names.
   It's also weird to pass `field` as a method, and interpret field type as a 
return type, but that's how `javapoet` works I guess?



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