Skip to content

Commit

Permalink
2.x: fix incorrect error message at SubscriptionHelper.setOnce (#5623)
Browse files Browse the repository at this point in the history
  • Loading branch information
takuaraki authored and akarnokd committed Sep 27, 2017
1 parent ad8ca8e commit 8c5bd1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static boolean set(AtomicReference<Subscription> field, Subscription s) {
* @return true if the operation succeeded, false if the target field was not null.
*/
public static boolean setOnce(AtomicReference<Subscription> field, Subscription s) {
ObjectHelper.requireNonNull(s, "d is null");
ObjectHelper.requireNonNull(s, "s is null");
if (!field.compareAndSet(null, s)) {
s.cancel();
if (field.get() != CANCELLED) {
Expand Down

0 comments on commit 8c5bd1d

Please sign in to comment.