mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
getModulePath() may require a state store lock, which is really bad idea in toString().
This commit is contained in:
@@ -285,7 +285,7 @@ public class ModuleImpl extends ComponentManagerImpl implements ModuleEx {
|
||||
@SuppressWarnings({"HardCodedStringLiteral"})
|
||||
public String toString() {
|
||||
if (myName == null) return "Module (not initialized)";
|
||||
return "Module: '" + getName() + "' " +(isDisposed() ? "(Disposed)" : "path: '" + getModuleFilePath() + "'");
|
||||
return "Module: '" + getName();
|
||||
}
|
||||
|
||||
private static String moduleNameByFileName(@NotNull String fileName) {
|
||||
|
||||
Reference in New Issue
Block a user