eirikbakke commented on code in PR #6150:
URL: https://github.com/apache/netbeans/pull/6150#discussion_r1258391704
##########
java/form/src/org/netbeans/modules/form/JavaCodeGenerator.java:
##########
@@ -2554,6 +2519,84 @@ private void generateListenerAddCode(RADComponent comp,
generateCatchCode(exceptions, codeWriter);
}
+ private void generateInnerClasses(Writer codeWriter, EventSetDescriptor
eventSetDesc, List<Event> eventList, boolean useLambdas) throws IOException {
+
+ if (useLambdas && eventSetDesc.getListenerMethods().length == 1) {
+ generateWithReferenceOrLambda(codeWriter, eventList);
+ } else {
+ codeWriter.write("new "); // NOI18N
Review Comment:
I looked over this and confirmed that the code pasted here in the "else"
case is the same as the above, with some whitespace changes only.
--
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