Contract fixed

GitOrigin-RevId: 03719ad71c4c02ad98fb9f61e72e7857d4cfb8c5
This commit is contained in:
Tagir Valeev
2020-06-22 20:18:34 +03:00
committed by intellij-monorepo-bot
parent 2c7a579535
commit fcf1ee68b5
@@ -140,7 +140,7 @@ public class VcsLogPathsIndex extends VcsLogFullDetailsIndex<List<VcsLogPathsInd
}
}
@Contract("null -> 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<List<VcsLogPathsInd
private static final TByteObjectHashMap<ChangeKind> KINDS = new TByteObjectHashMap<>();
static {
for (ChangeKind kind : ChangeKind.values()) {
for (ChangeKind kind : values()) {
KINDS.put(kind.id, kind);
}
}