commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1543247 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java
Date Tue, 19 Nov 2013 00:36:51 GMT
Author: ggregory
Date: Tue Nov 19 00:36:51 2013
New Revision: 1543247

URL: http://svn.apache.org/r1543247
Log:
Statement unnecessarily nested within else clause.

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java?rev=1543247&r1=1543246&r2=1543247&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/InvokerTransformer.java
Tue Nov 19 00:36:51 2013
@@ -79,9 +79,8 @@ public class InvokerTransformer<I, O> im
         }
         if (paramTypes == null || paramTypes.length == 0) {
             return new InvokerTransformer<I, O>(methodName);
-        } else {
-            return new InvokerTransformer<I, O>(methodName, paramTypes, args);
         }
+        return new InvokerTransformer<I, O>(methodName, paramTypes, args);
     }
 
     /**



Mime
View raw message