Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Caudy <rcaudy@gmail.com>
  • Loading branch information
nbauernfeind and rcaudy authored Oct 31, 2024
1 parent ba0e6a8 commit e536e9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,10 @@ private static class AsyncState<T> {

public synchronized void setResult(final T result) {
if (this.result != null) {
throw new IllegalStateException("callback can only be called once");
throw new IllegalStateException("Callback can only be called once");
}
if (result == null) {
throw new IllegalArgumentException("callback invoked with null result");
throw new IllegalArgumentException("Callback invoked with null result");
}
this.result = result;
notifyAll();
Expand Down

0 comments on commit e536e9e

Please sign in to comment.