commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1166350 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/comparator/IsWithinRange.java
Date Wed, 07 Sep 2011 19:51:24 GMT
Author: simonetripodi
Date: Wed Sep  7 19:51:23 2011
New Revision: 1166350

URL: http://svn.apache.org/viewvc?rev=1166350&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/comparator/IsWithinRange.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/comparator/IsWithinRange.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/comparator/IsWithinRange.java?rev=1166350&r1=1166349&r2=1166350&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/comparator/IsWithinRange.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/comparator/IsWithinRange.java
Wed Sep  7 19:51:23 2011
@@ -75,14 +75,14 @@ public class IsWithinRange<A extends Com
      * {@inheritDoc}
      * Test if the passed in object is within the specified range.
      */
-    public boolean test(A o) {
+    public final boolean test(A o) {
         return o.compareTo(min) >= 0 && o.compareTo(max) <= 0;
     }
 
     /**
      * {@inheritDoc}
      */
-    public boolean equals(Object o) {
+    public final boolean equals(Object o) {
         if (this == o) {
             return true;
         }
@@ -96,14 +96,14 @@ public class IsWithinRange<A extends Com
     /**
      * {@inheritDoc}
      */
-    public int hashCode() {
+    public final int hashCode() {
         return 29 * min.hashCode() + max.hashCode() + NAME_HASH_CODE;
     }
 
     /**
      * {@inheritDoc}
      */
-    public String toString() {
+    public final String toString() {
         return "IsWithinRange(" + min + ", " + max + ")";
     }
 



Mime
View raw message