commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1155537 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java
Date Tue, 09 Aug 2011 20:10:02 GMT
Author: simonetripodi
Date: Tue Aug  9 20:10:02 2011
New Revision: 1155537

URL: http://svn.apache.org/viewvc?rev=1155537&view=rev
Log:
fixed RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE findbug violation: Redundant nullcheck of map,
which is known to be non-null in org.apache.commons.functor.generator.util.EachElement.from(Map)

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java?rev=1155537&r1=1155536&r2=1155537&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java
Tue Aug  9 20:10:02 2011
@@ -60,7 +60,7 @@ public final class EachElement {
         if (map == null) {
             return null;
         }
-        return map == null ? null : EachElement.from(((Map<K, V>) map).entrySet().iterator());
+        return EachElement.from(((Map<K, V>) map).entrySet().iterator());
     }
 
     /**



Mime
View raw message