commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1156789 - in /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core: algorithm/RecursiveEvaluation.java collection/FilteredIterator.java
Date Thu, 11 Aug 2011 20:05:10 GMT
Author: simonetripodi
Date: Thu Aug 11 20:05:09 2011
New Revision: 1156789

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

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/RecursiveEvaluation.java
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/FilteredIterator.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/RecursiveEvaluation.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/RecursiveEvaluation.java?rev=1156789&r1=1156788&r2=1156789&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/RecursiveEvaluation.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/RecursiveEvaluation.java
Thu Aug 11 20:05:09 2011
@@ -85,7 +85,7 @@ public class RecursiveEvaluation impleme
         if (obj == this) {
             return true;
         }
-        if (obj instanceof RecursiveEvaluation == false) {
+        if (!(obj instanceof RecursiveEvaluation)) {
             return false;
         }
         return ((RecursiveEvaluation) obj).function.equals(function);

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/FilteredIterator.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/FilteredIterator.java?rev=1156789&r1=1156788&r2=1156789&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/FilteredIterator.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/FilteredIterator.java
Thu Aug 11 20:05:09 2011
@@ -98,7 +98,7 @@ public final class FilteredIterator<T> i
         if (obj == this) {
             return true;
         }
-        if (obj instanceof FilteredIterator<?> == false) {
+        if (!(obj instanceof FilteredIterator<?>)) {
             return false;
         }
         FilteredIterator<?> that = (FilteredIterator<?>) obj;



Mime
View raw message