Fix audit provider example
This commit is contained in:
parent
2e82d56634
commit
dd684858f2
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue