lahodaj commented on code in PR #9070:
URL: https://github.com/apache/netbeans/pull/9070#discussion_r2603380747
##########
java/java.hints/test/unit/src/org/netbeans/modules/java/hints/jdk/ConvertToARMTest.java:
##########
@@ -1554,4 +1554,54 @@ public void testPreserveComments228141() throws
Exception {
}
}
}
+
+ // Case:
+ public void testGH9046() throws Exception {
+ HintTest
+ .create()
+ .input("package test;\n"
+ + "import java.io.ByteArrayOutputStream;\n"
Review Comment:
+1
##########
java/java.hints/src/org/netbeans/modules/java/hints/jdk/ConvertToARM.java:
##########
@@ -658,6 +662,10 @@ private static BlockTree rewriteOwnerBlock(
gen.copyComments(tt.getFinallyBlock(), nt, false);
}
}
+ if(! preVarDeclsWritten) {
Review Comment:
Nit - could be `if(! preVarDeclsWritten` -> `if (!preVarDeclsWritten` (space
moved after `if`), but it is not critical.
--
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