From 7d9357dfdab0037053f7efbf1b094726b86feaa6 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Fri, 11 May 2012 00:32:27 +0000 Subject: [PATCH] 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 --- src/main/java/org/apache/commons/math3/util/Pair.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/util/Pair.java b/src/main/java/org/apache/commons/math3/util/Pair.java index 44c2cc093..6d4e1bd4a 100644 --- a/src/main/java/org/apache/commons/math3/util/Pair.java +++ b/src/main/java/org/apache/commons/math3/util/Pair.java @@ -83,9 +83,6 @@ public class Pair { */ @Override public boolean equals(Object o) { - if (o == null) { - return false; - } if (!(o instanceof Pair)) { return false; } else {