mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SEM: @NotNull for SemKey subKey
GitOrigin-RevId: 741dd032c7edf5a7c3151a00eaca4c4f329020b2
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user