jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r587520 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventFilterImpl.java
Date Tue, 23 Oct 2007 14:35:23 GMT
Author: reschke
Date: Tue Oct 23 07:35:22 2007
New Revision: 587520

URL: http://svn.apache.org/viewvc?rev=587520&view=rev
Log:
JCR-1179: remove broken path matching logic from commons.EventFilterImpl as well.

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventFilterImpl.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventFilterImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventFilterImpl.java?rev=587520&r1=587519&r2=587520&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventFilterImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventFilterImpl.java
Tue Oct 23 07:35:22 2007
@@ -112,18 +112,7 @@
 
         // finally check path
         try {
-            // the relevant path for the path filter depends on the event type
-            // for node events, the relevant path is the one returned by
-            // Event.getPath().
-            // for property events, the relevant path is the path of the
-            // node where the property belongs to.
-            Path eventPath;
-            if (type == Event.NODE_ADDED || type == Event.NODE_REMOVED) {
-                eventPath = event.getPath();
-            } else {
-                eventPath = event.getPath().getAncestor(1);
-            }
-
+            Path eventPath = event.getPath().getAncestor(1);
             boolean match = eventPath.equals(absPath);
             if (!match && isDeep) {
                 match = eventPath.isDescendantOf(absPath);



Mime
View raw message