homberghp commented on code in PR #8197:
URL: https://github.com/apache/netbeans/pull/8197#discussion_r1930578337


##########
java/java.source.base/src/org/netbeans/modules/java/source/pretty/VeryPretty.java:
##########
@@ -977,6 +986,9 @@ private void printEnumConstants(java.util.List<? extends 
JCTree> defs, boolean f
 
     @Override
     public void visitMethodDef(JCMethodDecl tree) {
+        boolean methodIsConstructor = null==tree.getReturnType();
+        boolean enclosingIsRecord= enclClass.getKind() == Kind.RECORD;
+        boolean paramsIsComponents= paramsIsComponents(tree.getParameters());

Review Comment:
   nitpick back: null==tree.getReturnType() comes from the practice that a 
compiler will not accept an assignment to a constant. This is less of an issue 
in Java but is for truthty languages like C and python.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to