commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1166348&view=rev
Log:
fixed checkstyle violations: Name 'nameHashCode' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.

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=1166348&r1=1166347&r2=1166348&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:49:55 2011
@@ -35,7 +35,7 @@ public class IsWithinRange<A extends Com
     private static final long serialVersionUID = -7584005207181667878L;
 
     /** Hashcode of the name of this Predicate. */
-    private static final int nameHashCode = "IsWithinRange".hashCode();
+    private static final int NAME_HASH_CODE = "IsWithinRange".hashCode();
 
     /***************************************************
      *  Instance variables
@@ -97,7 +97,7 @@ public class IsWithinRange<A extends Com
      * {@inheritDoc}
      */
     public int hashCode() {
-        return 29 * min.hashCode() + max.hashCode() + nameHashCode;
+        return 29 * min.hashCode() + max.hashCode() + NAME_HASH_CODE;
     }
 
     /**



Mime
View raw message