jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1151895 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
Date Thu, 28 Jul 2011 15:23:32 GMT
Author: mduerig
Date: Thu Jul 28 15:23:31 2011
New Revision: 1151895

URL: http://svn.apache.org/viewvc?rev=1151895&view=rev
Log:
spi2microkernel (WIP)
- prevent infinit loop in observation 

Modified:
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java?rev=1151895&r1=1151894&r2=1151895&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/SubscriptionImpl.java
Thu Jul 28 15:23:31 2011
@@ -292,8 +292,9 @@ public class SubscriptionImpl implements
 
             // events.filter(event => eventFilters.all(_.accept(event, isLocal))
             for (Iterator<Event> it = events.iterator(); it.hasNext(); ) {
+                Event event = it.next();
                 for (EventFilter filter : eventFilters) {
-                    if (!filter.accept(it.next(), isLocal)) {
+                    if (!filter.accept(event, isLocal)) {
                         it.remove();
                         break;
                     }



Mime
View raw message