Skip to content

Commit

Permalink
Rename notifyListeners to notifyEvent
Browse files Browse the repository at this point in the history
Disambiguate between notifying listeners about events vs. exceptions.
  • Loading branch information
gcurtis committed Sep 11, 2014
1 parent 77fb254 commit 9a8b394
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/box/sdk/EventStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void uncaughtException(Thread t, Throwable e) {
this.started = true;
}

private void notifyListeners(BoxEvent event) {
private void notifyEvent(BoxEvent event) {
synchronized (this.listenerLock) {
boolean newEvent = this.receivedEvents.add(event.getID());
if (newEvent) {
Expand Down Expand Up @@ -127,7 +127,7 @@ public void run() {
JsonArray entriesArray = jsonObject.get("entries").asArray();
for (JsonValue entry : entriesArray) {
BoxEvent event = new BoxEvent(EventStream.this.api, entry.asObject());
EventStream.this.notifyListeners(event);
EventStream.this.notifyEvent(event);
}
}
}
Expand Down

0 comments on commit 9a8b394

Please sign in to comment.