From fcf1ee68b59b5867e8ceff7d5dcb268ffd6c8142 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Mon, 22 Jun 2020 22:55:18 +0700 Subject: [PATCH] Contract fixed GitOrigin-RevId: 03719ad71c4c02ad98fb9f61e72e7857d4cfb8c5 --- .../src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java index 59b84039b4f7..691c02220dd7 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java @@ -140,7 +140,7 @@ public class VcsLogPathsIndex extends VcsLogFullDetailsIndex null; !null -> !null") + @Contract("null,_ -> null; !null,_ -> !null") @Nullable private static FilePath toFilePath(@Nullable LightFilePath lightFilePath, boolean isDirectory) { if (lightFilePath == null) return null; @@ -270,7 +270,7 @@ public class VcsLogPathsIndex extends VcsLogFullDetailsIndex KINDS = new TByteObjectHashMap<>(); static { - for (ChangeKind kind : ChangeKind.values()) { + for (ChangeKind kind : values()) { KINDS.put(kind.id, kind); } }