Redundant check for null; null is not an instanceof any Object
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1336981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
49a950d28c
commit
7d9357dfda
|
@ -83,9 +83,6 @@ public class Pair<K, V> {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (o == null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!(o instanceof Pair)) {
|
if (!(o instanceof Pair)) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue