sid-srini commented on code in PR #8827:
URL: https://github.com/apache/netbeans/pull/8827#discussion_r2348251633
##########
java/java.source.base/src/org/netbeans/api/java/source/GeneratorUtilities.java:
##########
@@ -1268,8 +1312,21 @@ private CompilationUnitTree
addImports(CompilationUnitTree cut, List<? extends I
}
}
- // check for possible name clashes originating from adding the package
imports
- Set<Element> explicitNamedImports = new HashSet<Element>();
+ // Add modulesToImport to the importScope, to check name clashes, if
any
+ if (!modulesToImport.isEmpty()) {
+ for (ModuleElement m : modulesToImport) {
+ for (Element e : m.getEnclosedElements()) {
Review Comment:
Thank you. I have tried to update with using this.
--
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