eirikbakke commented on code in PR #8171:
URL: https://github.com/apache/netbeans/pull/8171#discussion_r1921900325
##########
ide/projectui/src/org/netbeans/modules/project/ui/ProjectUtilities.java:
##########
@@ -135,28 +130,25 @@ private void doClose(Project[] projects, boolean
notifyUI, Wrapper wr) {
if (dobj != null) {
FileObject fobj = dobj.getPrimaryFile();
Project owner =
ProjectConvertors.getNonConvertorOwner(fobj);
- ERR.log(Level.FINER, "Found {0} owned by {1} in {2} of
{3}", new Object[] {fobj, owner, tc.getName(), tc.getClass()});
+ LOG.log(Level.FINER, "Found {0} owned by {1} in {2} of
{3}", new Object[] {fobj, owner, tc.getName(), tc.getClass()});
- if (listOfProjects.contains(owner)) {
Review Comment:
It would be cleaner to just get `Set<String> files =
project2FilesMap.get(owner);` here and change the test to `files != null`. Then
change the earlier loop to just `for (Project p : projects)` and get rid of
listOfProjects altogether.
--
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