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:20:31 UTC
svn commit: r1166322 -
/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/algorithm/FoldLeft.java
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();
}