Skip to content

Commit

Permalink
Suppressed uninformative type safety warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Feb 2, 2013
1 parent ec0d63e commit 7153dfe
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -43,6 +43,10 @@ public void buildListener() throws RepositoryException {
false);
}

// it's okay to suppress type-safety warning here,
// because we know that EventIterator only produces
// Events, like an Iterator<Event>
@SuppressWarnings("unchecked")
@Override
public void onEvent(EventIterator events) {
for (Event e : filter(new Builder<Event>().addAll(events).build(),
Expand Down

0 comments on commit 7153dfe

Please sign in to comment.