getModulePath() may require a state store lock, which is really bad idea in toString().

This commit is contained in:
Maxim Shafirov
2012-06-28 17:18:53 +04:00
parent 682b1139e3
commit 7f9010160d
@@ -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) {