commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1156784 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldLeft.java
Date Thu, 11 Aug 2011 20:01:55 GMT
Author: simonetripodi
Date: Thu Aug 11 20:01:55 2011
New Revision: 1156784

URL: http://svn.apache.org/viewvc?rev=1156784&view=rev
Log:
fixed checkstyle violations: Expression can be simplified

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldLeft.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldLeft.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldLeft.java?rev=1156784&r1=1156783&r2=1156784&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldLeft.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldLeft.java
Thu Aug 11 20:01:55 2011
@@ -123,7 +123,7 @@ public class FoldLeft<T> implements Unar
         if (obj == this) {
             return true;
         }
-        if (obj instanceof FoldLeft<?> == false) {
+        if (!(obj instanceof FoldLeft<?>)) {
             return false;
         }
         return ((FoldLeft<?>) obj).function.equals(function);



Mime
View raw message