commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1156785 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldRight.java
Date Thu, 11 Aug 2011 20:02:54 GMT
Author: simonetripodi
Date: Thu Aug 11 20:02:53 2011
New Revision: 1156785

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

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

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



Mime
View raw message