Copilot commented on code in PR #2235: URL: https://github.com/apache/groovy/pull/2235#discussion_r2107024682
########## src/main/java/org/codehaus/groovy/tools/javac/JavaStubGenerator.java: ########## @@ -475,8 +476,8 @@ private void printField(final PrintWriter out, final FieldNode field, final bool } // GROOVY-5150, GROOVY-10902, GROOVY-10928, GROOVY-11019: dummy value that prevents inlining - if (isPrimitiveType(type) || isStringType(type)) { - out.print("new " + getWrapper(type) + "("); + if (isPrimitiveType(type)) { Review Comment: [nitpick] Consider adding a comment here to clarify that string types are intentionally handled separately (assigned null) to avoid the deprecated constructor usage, which aligns with the updated test expectations. -- 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: notifications-unsubscr...@groovy.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org