Minor cleanup. Listener is never null.

pull/201/merge
Brett Wooldridge 10 years ago
parent 501db5ab6e
commit 66118ff4c4

@ -137,9 +137,7 @@ public final class ConcurrentBag<T extends BagEntry>
}
} while (startSeq < sequence.longValue());
if (listener != null) {
listener.addBagItem();
}
listener.addBagItem();
synchronizer.tryAcquireSharedNanos(startSeq, timeout);

@ -136,9 +136,7 @@ public final class ConcurrentBag<T extends BagEntry>
}
} while (startSeq < sequence.longValue());
if (listener != null) {
listener.addBagItem();
}
listener.addBagItem();
synchronizer.tryAcquireSharedNanos(startSeq, timeout);

Loading…
Cancel
Save