commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1166322 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldLeft.java
Date Wed, 07 Sep 2011 19:20:31 GMT
Author: simonetripodi
Date: Wed Sep  7 19:20:31 2011
New Revision: 1166322

URL: http://svn.apache.org/viewvc?rev=1166322&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/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=1166322&r1=1166321&r2=1166322&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
Wed Sep  7 19:20:31 2011
@@ -100,7 +100,7 @@ public class FoldLeft<T> implements Unar
      * {@inheritDoc}
      * @param obj {@link Generator} to transform
      */
-    public T evaluate(Generator<T> obj) {
+    public final T evaluate(Generator<T> obj) {
         FoldLeftHelper<T> helper = new FoldLeftHelper<T>(function);
         obj.run(helper);
         return helper.getResult();
@@ -111,7 +111,7 @@ public class FoldLeft<T> implements Unar
      * @param left {@link Generator} to transform
      * @param right initial left-side seed object
      */
-    public T evaluate(Generator<T> left, T right) {
+    public final T evaluate(Generator<T> left, T right) {
         FoldLeftHelper<T> helper = new FoldLeftHelper<T>(right, function);
         left.run(helper);
         return helper.getResult();
@@ -120,7 +120,7 @@ public class FoldLeft<T> implements Unar
     /**
      * {@inheritDoc}
      */
-    public boolean equals(Object obj) {
+    public final boolean equals(Object obj) {
         if (obj == this) {
             return true;
         }
@@ -133,7 +133,7 @@ public class FoldLeft<T> implements Unar
     /**
      * {@inheritDoc}
      */
-    public int hashCode() {
+    public final int hashCode() {
         return "FoldLeft".hashCode() << 2 ^ function.hashCode();
     }
 



Mime
View raw message