SEM: @NotNull for SemKey subKey

GitOrigin-RevId: 741dd032c7edf5a7c3151a00eaca4c4f329020b2
This commit is contained in:
Yuriy Artamonov
2020-04-20 20:05:02 +00:00
committed by intellij-monorepo-bot
parent 3e84f6677c
commit 0c70f74bee
@@ -64,6 +64,7 @@ public class SemKey<T extends SemElement> {
}
@SafeVarargs
@NotNull
public static <T extends SemElement> SemKey<T> createKey(String debugName, SemKey<? super T> @NotNull ... supers) {
return new SemKey<>(debugName, supers);
}
@@ -78,6 +79,7 @@ public class SemKey<T extends SemElement> {
}
@SafeVarargs
@NotNull
public final <K extends T> SemKey<K> subKey(@NonNls String debugName, SemKey<? super K> @NotNull ... otherSupers) {
if (otherSupers.length == 0) {
return new SemKey<>(debugName, this);