Fix audit provider example
This commit is contained in:
parent
2e82d56634
commit
dd684858f2
1 changed files with 5 additions and 1 deletions
|
@ -27,13 +27,17 @@ 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;
|
||||
}
|
||||
}
|
||||
if (!include) {
|
||||
itr.remove();
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue