You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/09/07 21:21:39 UTC

svn commit: r1166323 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldRight.java

Author: simonetripodi
Date: Wed Sep  7 19:21:39 2011
New Revision: 1166323

URL: http://svn.apache.org/viewvc?rev=1166323&view=rev
Log:
fixed checkstyle violations: Method 'XXX' is not designed for extension - needs to be abstract, final or empty.

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=1166323&r1=1166322&r2=1166323&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 Wed Sep  7 19:21:39 2011
@@ -106,7 +106,7 @@ public class FoldRight<T> implements Una
      * {@inheritDoc}
      * @param obj {@link Generator} to transform
      */
-    public T evaluate(Generator<T> obj) {
+    public final T evaluate(Generator<T> obj) {
         FoldRightHelper<T> helper = new FoldRightHelper<T>(function);
         obj.run(helper);
         return helper.getResult();
@@ -117,7 +117,7 @@ public class FoldRight<T> implements Una
      * @param left {@link Generator} to transform
      * @param right initial right-side seed object
      */
-    public T evaluate(Generator<T> left, T right) {
+    public final T evaluate(Generator<T> left, T right) {
         FoldRightHelper<T> helper = new FoldRightHelper<T>(right, function);
         left.run(helper);
         return helper.getResult();
@@ -126,7 +126,7 @@ public class FoldRight<T> implements Una
     /**
      * {@inheritDoc}
      */
-    public boolean equals(Object obj) {
+    public final boolean equals(Object obj) {
         if (obj == this) {
             return true;
         }
@@ -139,7 +139,7 @@ public class FoldRight<T> implements Una
     /**
      * {@inheritDoc}
      */
-    public int hashCode() {
+    public final int hashCode() {
         return "FoldRight".hashCode() << 2 ^ function.hashCode();
     }