jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r373788 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/ValueConstraint.java
Date Tue, 31 Jan 2006 11:00:12 GMT
Author: stefan
Date: Tue Jan 31 03:00:01 2006
New Revision: 373788

URL: http://svn.apache.org/viewcvs?rev=373788&view=rev
Log:
removing unused methods

Modified:
    incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/ValueConstraint.java

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/ValueConstraint.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/ValueConstraint.java?rev=373788&r1=373787&r2=373788&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/ValueConstraint.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/ValueConstraint.java
Tue Jan 31 03:00:01 2006
@@ -54,27 +54,6 @@
         this.definition = definition;
     }
 
-    public boolean equals(Object other) {
-        if (other == this) {
-            return true;
-        } else if (other instanceof ValueConstraint) {
-            return definition.equals(((ValueConstraint) other).definition);
-        } else {
-            return false;
-        }
-    }
-
-    /**
-     * Returns zero to satisfy the Object equals/hashCode contract.
-     * This class is mutable and not meant to be used as a hash key.
-     *
-     * @return always zero
-     * @see Object#hashCode()
-     */
-    public int hashCode() {
-        return 0;
-    }
-
     /**
      * Returns the original (raw) definition of this constraint.
      *
@@ -736,5 +715,3 @@
         }
     }
 }
-
-



Mime
View raw message