mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Pair.getFirst, second: don't declare them as @Nullable.
This forces everyone check getFirst() for null.
This commit is contained in:
@@ -58,12 +58,12 @@ public class Pair<A, B> {
|
||||
this.second = second;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
public final A getFirst() {
|
||||
return first;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
public final B getSecond() {
|
||||
return second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user