Skip to content

Commit 9a8b394

Browse files
committed
Rename notifyListeners to notifyEvent
Disambiguate between notifying listeners about events vs. exceptions.
1 parent 77fb254 commit 9a8b394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/box/sdk/EventStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void uncaughtException(Thread t, Throwable e) {
6565
this.started = true;
6666
}
6767

68-
private void notifyListeners(BoxEvent event) {
68+
private void notifyEvent(BoxEvent event) {
6969
synchronized (this.listenerLock) {
7070
boolean newEvent = this.receivedEvents.add(event.getID());
7171
if (newEvent) {
@@ -127,7 +127,7 @@ public void run() {
127127
JsonArray entriesArray = jsonObject.get("entries").asArray();
128128
for (JsonValue entry : entriesArray) {
129129
BoxEvent event = new BoxEvent(EventStream.this.api, entry.asObject());
130-
EventStream.this.notifyListeners(event);
130+
EventStream.this.notifyEvent(event);
131131
}
132132
}
133133
}

0 commit comments

Comments
 (0)