Author: simonetripodi
Date: Wed Sep  7 20:10:26 2011
New Revision: 1166373

URL: http://svn.apache.org/viewvc?rev=1166373&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/composite/CompositeUnaryFunction.java

Modified: 
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java?rev=1166373&r1=1166372&r2=1166373&view=diff
==============================================================================
--- 
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java
 (original)
+++ 
commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/composite/CompositeUnaryFunction.java
 Wed Sep  7 20:10:26 2011
@@ -142,7 +142,7 @@ public class CompositeUnaryFunction<A, T
     /**
      * {@inheritDoc}
      */
-    public T evaluate(A obj) {
+    public final T evaluate(A obj) {
         return function.evaluate(obj);
     }
 
@@ -152,7 +152,7 @@ public class CompositeUnaryFunction<A, T
      * @param preceding UnaryFunction
      * @return CompositeUnaryFunction<P, T>
      */
-    public <P> CompositeUnaryFunction<P, T> of(UnaryFunction<? super P, ? 
extends A> preceding) {
+    public final <P> CompositeUnaryFunction<P, T> of(UnaryFunction<? super P, 
? extends A> preceding) {
         if (preceding == null) {
             throw new IllegalArgumentException("preceding function was null");
         }
@@ -162,7 +162,7 @@ public class CompositeUnaryFunction<A, T
     /**
      * {@inheritDoc}
      */
-    public boolean equals(Object that) {
+    public final boolean equals(Object that) {
         return that == this
                 || (that instanceof CompositeUnaryFunction<?, ?> && 
equals((CompositeUnaryFunction<?, ?>) that));
     }
@@ -172,7 +172,7 @@ public class CompositeUnaryFunction<A, T
      * @param that CompositeUnaryFunction to test
      * @return boolean
      */
-    public boolean equals(CompositeUnaryFunction<?, ?> that) {
+    public final boolean equals(CompositeUnaryFunction<?, ?> that) {
         // by construction, list is never null
         return null != that && function.equals(that.function);
     }
@@ -180,7 +180,7 @@ public class CompositeUnaryFunction<A, T
     /**
      * {@inheritDoc}
      */
-    public int hashCode() {
+    public final int hashCode() {
         // by construction, list is never null
         return ("CompositeUnaryFunction".hashCode() << 4) ^ 
function.hashCode();
     }
@@ -188,7 +188,7 @@ public class CompositeUnaryFunction<A, T
     /**
      * {@inheritDoc}
      */
-    public String toString() {
+    public final String toString() {
         return "CompositeUnaryFunction<" + function + ">";
     }
 


Reply via email to