Pair.getFirst, second: don't declare them as @Nullable.

This forces everyone check getFirst() for null.
This commit is contained in:
Kirill Likhodedov
2012-10-22 18:08:22 +04:00
parent 9b7827c4ae
commit d346a43d07
@@ -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;
}