matrei commented on code in PR #15654:
URL: https://github.com/apache/grails-core/pull/15654#discussion_r3279017058


##########
grails-async/core/src/main/groovy/org/grails/async/transform/internal/DelegateAsyncTransformation.java:
##########
@@ -118,7 +119,7 @@ private void applyDelegateAsyncTransform(ClassNode 
classNode, ClassNode targetAp
                 if (existingMethod == null) {
                     ClassNode promiseNode = 
ClassHelper.make(Promise.class).getPlainNodeReference();
                     ClassNode originalReturnType = m.getReturnType();
-                    if 
(!originalReturnType.getNameWithoutPackage().equals(VOID)) {
+                    if 
(!VOID.equals(originalReturnType.getNameWithoutPackage())) {

Review Comment:
   Why was this changed?



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