diff options
Diffstat (limited to 'platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java')
-rw-r--r-- | platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java b/platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java index 493d1d6cd519..ffc7de7c9b12 100644 --- a/platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java +++ b/platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java @@ -63,11 +63,7 @@ import java.util.concurrent.locks.Lock; @State( name = "FileBasedIndex", - roamingType = RoamingType.DISABLED, - storages = { - @Storage( - file = StoragePathMacros.APP_CONFIG + "/stubIndex.xml") - } + storages = {@Storage(file = StoragePathMacros.APP_CONFIG + "/stubIndex.xml", roamingType = RoamingType.DISABLED)} ) public class StubIndexImpl extends StubIndex implements ApplicationComponent, PersistentStateComponent<StubIndexState> { private static final AtomicReference<Boolean> ourForcedClean = new AtomicReference<Boolean>(null); @@ -109,7 +105,7 @@ public class StubIndexImpl extends StubIndex implements ApplicationComponent, Pe myStubProcessingHelper = new StubProcessingHelper(fileBasedIndex); } - + @Nullable public static StubIndexImpl getInstanceOrInvalidate() { if (ourForcedClean.compareAndSet(null, Boolean.TRUE)) { |