mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[performance optimization] iterate over Map's values() directly, avoid (WeakKey)Map.get()
This commit is contained in:
+1
-2
@@ -58,8 +58,7 @@ public class EnforcedPlainTextFileTypeManager implements ProjectManagerListener
|
||||
}
|
||||
}
|
||||
}
|
||||
for (Project project : myPlainTextFileSets.keySet()) {
|
||||
Collection<VirtualFile> projectSet = myPlainTextFileSets.get(project);
|
||||
for (Collection<VirtualFile> projectSet : myPlainTextFileSets.values()) {
|
||||
if (projectSet != null && projectSet.contains(file)) return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user