Fix audit provider example

This commit is contained in:
Stian Thorgersen 2014-05-29 15:08:27 +01:00
parent 2e82d56634
commit dd684858f2

View file

@ -27,12 +27,16 @@ public class MemEventQuery implements EventQuery {
Iterator<Event> itr = this.events.iterator();
while (itr.hasNext()) {
Event next = itr.next();
boolean include = false;
for (EventType e : events) {
if (next.getEvent().equals(e)) {
include = true;
break;
}
}
itr.remove();
if (!include) {
itr.remove();
}
}
return this;
}