mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
MavenProjectsManager: make usage of ModuleRootManagerImpl optional
ModuleRootManagerImpl is an implementation of project model and should not be relied upon. In this case ModuleRootManagerImpl.stateChanged() makes sense only on current project model, so it's now surrounded with instanceof. GitOrigin-RevId: ad92f53824f68d2ffc266e66bc551d24a4bac1c3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f136cc3284
commit
47b5431ec0
+3
-1
@@ -573,7 +573,9 @@ public class MavenProjectsManager extends MavenSimpleProjectComponent
|
||||
if (m.isDisposed()) continue;
|
||||
ExternalSystemModulePropertyManager.getInstance(m).setMavenized(mavenized);
|
||||
// force re-save (since can be stored externally)
|
||||
((ModuleRootManagerImpl)ModuleRootManager.getInstance(m)).stateChanged();
|
||||
if (ModuleRootManager.getInstance(m) instanceof ModuleRootManagerImpl) {
|
||||
((ModuleRootManagerImpl)ModuleRootManager.getInstance(m)).stateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user