sid-srini commented on code in PR #8827:
URL: https://github.com/apache/netbeans/pull/8827#discussion_r2368938713
##########
java/java.source.base/src/org/netbeans/api/java/source/GeneratorUtilities.java:
##########
@@ -1187,11 +1206,37 @@ private CompilationUnitTree
addImports(CompilationUnitTree cut, List<? extends I
typeCounts.put((TypeElement)el, cnt);
} else {
pkgCounts.put((PackageElement)el, cnt);
+ if (cnt >= -1 && modCounts != null) {
+ ModuleElement ml;
+ try {
+ ml = elements.getModuleOf(e);
+ } catch (IllegalArgumentException ex) {
Review Comment:
Thank you very much. I have committed your patch. I'll keep this approach in
mind for the future.
--
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