IDEA-229963 don't store not localized string in a static field

GitOrigin-RevId: 27480c9a93b97564852ec91ede9345f496f062ed
This commit is contained in:
Dmitry.Krasilschikov
2020-01-07 15:04:47 +00:00
committed by intellij-monorepo-bot
parent 854d5ab494
commit 3db05bb20a
@@ -25,12 +25,11 @@ import org.jetbrains.annotations.NotNull;
* @author nik
*/
public class ModuleLoadingErrorDescription extends ConfigurationErrorDescription {
private static final ConfigurationErrorType INVALID_MODULE = new ConfigurationErrorType(ProjectBundle.message("element.kind.name.module"), false);
private final ModulePath myModulePath;
private final ModuleManagerImpl myModuleManager;
ModuleLoadingErrorDescription(String description, @NotNull ModulePath modulePath, @NotNull ModuleManagerImpl moduleManager) {
super(modulePath.getModuleName(), description, INVALID_MODULE);
super(modulePath.getModuleName(), description, new ConfigurationErrorType(ProjectBundle.message("element.kind.name.module"), false));
myModulePath = modulePath;
myModuleManager = moduleManager;