From 5c3e92a1376e46fa04ce0271a38118bf92d33949 Mon Sep 17 00:00:00 2001 From: Elena Shaverdova Date: Tue, 19 Sep 2023 13:53:21 +0200 Subject: [PATCH] Stricter test that timestamp actually has some data inside GitOrigin-RevId: dbc275d9709be77b0de58a25e81f6f36ed323dad --- .../src/com/intellij/util/indexing/IndexingStamp.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/util/indexing/IndexingStamp.java b/platform/lang-impl/src/com/intellij/util/indexing/IndexingStamp.java index c82f9968ff3b..4ffd4dd46625 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/IndexingStamp.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/IndexingStamp.java @@ -1,4 +1,4 @@ -// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.util.indexing; import com.intellij.concurrency.ConcurrentCollectionFactory; @@ -339,7 +339,8 @@ public final class IndexingStamp { @TestOnly public static boolean hasIndexingTimeStamp(int fileId) { - return getTimestamp(fileId, false) != null; + Timestamps timestamp = getTimestamp(fileId, false); + return timestamp != null && timestamp.myIndexStamps != null && !timestamp.myIndexStamps.isEmpty(); } public static void update(int fileId, @NotNull ID indexName, final long indexCreationStamp) {