jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r373825 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/nodetype/ValueConstraint.java
Date Tue, 31 Jan 2006 14:39:47 GMT
Author: stefan
Date: Tue Jan 31 06:39:45 2006
New Revision: 373825

URL: http://svn.apache.org/viewcvs?rev=373825&view=rev
Log:
undoing previous commit which caused o.a.j.c.nodetype.xml.TestAll to fail

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=373825&r1=373824&r2=373825&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 06:39:45 2006
@@ -117,6 +117,21 @@
     }
 
     abstract void check(InternalValue value) throws ConstraintViolationException, RepositoryException;
+
+    //-------------------------------------------< java.lang.Object overrides >
+    public boolean equals(Object other) {
+        if (other == this) {
+            return true;
+        } else if (other instanceof ValueConstraint) {
+            return definition.equals(((ValueConstraint) other).definition);
+        } else {
+            return false;
+        }
+    }
+
+    public int hashCode() {
+        return definition.hashCode();
+    }
 }
 
 /**
@@ -715,3 +730,5 @@
         }
     }
 }
+
+



Mime
View raw message