commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r726810 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/ConfigurationKey.java
Date Mon, 15 Dec 2008 21:30:45 GMT
Author: oheger
Date: Mon Dec 15 13:30:44 2008
New Revision: 726810

URL: http://svn.apache.org/viewvc?rev=726810&view=rev
Log:
Fixed findbugs warnings.

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/ConfigurationKey.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/ConfigurationKey.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/ConfigurationKey.java?rev=726810&r1=726809&r2=726810&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/ConfigurationKey.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/ConfigurationKey.java
Mon Dec 15 13:30:44 2008
@@ -211,7 +211,7 @@
         {
             count++;
         }
-        return count % 2 == 1;
+        return count % 2 != 0;
     }
 
     /**
@@ -231,6 +231,7 @@
      *
      * @return a string for this object
      */
+    @Override
     public String toString()
     {
         return keyBuffer.toString();
@@ -277,6 +278,7 @@
      * @param c the object to compare
      * @return a flag if both objects are equal
      */
+    @Override
     public boolean equals(Object c)
     {
         if (c == null)
@@ -292,6 +294,7 @@
      *
      * @return the hash code
      */
+    @Override
     public int hashCode()
     {
         return String.valueOf(keyBuffer).hashCode();
@@ -660,6 +663,7 @@
          *
          * @return a clone of this object
          */
+        @Override
         public Object clone()
         {
             try



Mime
View raw message