fix after merge
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Thu, 7 Jul 2016 13:08:24 +0000 (15:08 +0200)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Thu, 7 Jul 2016 13:08:24 +0000 (15:08 +0200)
platform/configuration-store-impl/src/StateStorageManagerImpl.kt
platform/lang-impl/src/com/intellij/codeInspection/ex/EditInspectionToolsSettingsAction.java

index fd70187085398e7277ba8f0abaeea651c1992423..919ca6097028a65d0fae4e2d13261eb692726ddd 100644 (file)
@@ -162,7 +162,7 @@ open class StateStorageManagerImpl(private val rootTagName: String,
     else {
       key = storageClass.name!!
     }
-    storageLock.withLock {
+    storageLock.read {
       var storage = storages[key]
       if (storage == null) {
         storage = createStateStorage(storageClass, normalizedCollapsedPath, roamingType, stateSplitter, exclusive)
index 1440771d2eb6215402392158393be9b9cb9b7472..ef9ead97ec9c7dc0a8ca6ea8ebc78787b3735fd8 100644 (file)
@@ -103,7 +103,7 @@ public class EditInspectionToolsSettingsAction implements IntentionAction, Icona
     final ShowSettingsUtil settingsUtil = ShowSettingsUtil.getInstance();
     final ErrorsConfigurable errorsConfigurable;
     if (!canChooseDifferentProfile) {
-      errorsConfigurable = new ProjectInspectionToolsConfigurable(ProjectInspectionProfileManagerImpl.getInstance(project)) {
+      errorsConfigurable = new ProjectInspectionToolsConfigurable(ProjectInspectionProfileManagerImpl.getInstanceImpl(project)) {
 
         @Override
         protected boolean setActiveProfileAsDefaultOnApply() {