From a80224a4732eb5ee025512fbf1bf244e41880f0b Mon Sep 17 00:00:00 2001 From: Dmitro Batko Date: Tue, 28 Jan 2020 09:45:08 +0300 Subject: [PATCH] cleanup: make field final, unwrap if GitOrigin-RevId: 92edfa46f15d8c9e163ab71ed01a5afbc0ae8e83 --- .../com/intellij/util/indexing/FileBasedIndexImpl.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java index 1b9fcd225e08..eaac4a5700f2 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/FileBasedIndexImpl.java @@ -411,11 +411,7 @@ public final class FileBasedIndexImpl extends FileBasedIndexEx { break; } catch (Exception e) { - if (ApplicationManager.getApplication().isUnitTestMode()) { - LOG.info(e); - } else { - LOG.info(e); - } + LOG.info(e); boolean instantiatedStorage = storage != null; try { if (storage != null) storage.close(); @@ -1697,5 +1693,5 @@ public final class FileBasedIndexImpl extends FileBasedIndexEx { return extension instanceof PsiDependentIndex; } } - public static boolean DO_TRACE_STUB_INDEX_UPDATE = SystemProperties.getBooleanProperty("idea.trace.stub.index.update", false); + public static final boolean DO_TRACE_STUB_INDEX_UPDATE = SystemProperties.getBooleanProperty("idea.trace.stub.index.update", false); } \ No newline at end of file