jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1494577 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/observation/EventTracker.java
Date Wed, 19 Jun 2013 12:19:00 GMT
Author: mduerig
Date: Wed Jun 19 12:18:59 2013
New Revision: 1494577

URL: http://svn.apache.org/r1494577
Log:
JCR-3465: JcrUtils.getOrCreateByPath() creates a whole subtree instead of a single branch
implement EventTracker.toString / hashCode / equals

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/observation/EventTracker.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/observation/EventTracker.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/observation/EventTracker.java?rev=1494577&r1=1494576&r2=1494577&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/observation/EventTracker.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/observation/EventTracker.java
Wed Jun 19 12:18:59 2013
@@ -79,6 +79,27 @@ class EventTracker implements Event {
         return false;
     }
 
+    @Override
+    public String toString() {
+        return event.toString();
+    }
+
+    @Override
+    public int hashCode() {
+        return event.hashCode();
+    }
+
+    @Override
+    public boolean equals(Object other) {
+        if (this == other) {
+            return true;
+        } else if (other instanceof EventTracker) {
+            return event.equals(other);
+        } else {
+            return false;
+        }
+    }
+
     //---------------------------------------------------------< Event >--
 
     @Override



Mime
View raw message