commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1336981 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/Pair.java
Date Fri, 11 May 2012 00:32:27 GMT
Author: sebb
Date: Fri May 11 00:32:27 2012
New Revision: 1336981

URL: http://svn.apache.org/viewvc?rev=1336981&view=rev
Log:
Redundant check for null; null is not an instanceof any Object

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/Pair.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/Pair.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/Pair.java?rev=1336981&r1=1336980&r2=1336981&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/Pair.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/Pair.java Fri May
11 00:32:27 2012
@@ -83,9 +83,6 @@ public class Pair<K, V> {
      */
     @Override
     public boolean equals(Object o) {
-        if (o == null) {
-            return false;
-        }
         if (!(o instanceof Pair)) {
             return false;
         } else {



Mime
View raw message