mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AssertionFailedError: Too many projects leaked in tests
This commit is contained in:
+1
-1
@@ -415,7 +415,7 @@ public class ProjectManagerImpl extends ProjectManagerEx implements Disposable {
|
||||
synchronized (lock) {
|
||||
myOpenProjects = ArrayUtil.remove(myOpenProjects, project);
|
||||
ProjectCoreUtil.theProject = myOpenProjects.length == 1 ? myOpenProjects[0] : null;
|
||||
myOpenProjectByHash.remove(project.getLocationHash());
|
||||
myOpenProjectByHash.values().remove(project); // remove by value and not by key!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user