File tree Expand file tree Collapse file tree
src/main/java/graphql/execution/reactive Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66import java .util .concurrent .Executor ;
77import java .util .concurrent .atomic .AtomicReference ;
88
9- import static java . util . Objects . requireNonNull ;
9+ import static graphql . Assert . assertNotNull ;
1010
1111
1212/**
@@ -37,7 +37,7 @@ class NonBlockingMutexExecutor implements Executor {
3737
3838 @ Override
3939 public void execute (final Runnable command ) {
40- final RunNode newNode = new RunNode (requireNonNull (command , "Runnable must not be null" ));
40+ final RunNode newNode = new RunNode (assertNotNull (command , "Runnable must not be null" ));
4141 final RunNode prevLast = last .getAndSet (newNode );
4242 if (prevLast != null )
4343 prevLast .lazySet (newNode );
Original file line number Diff line number Diff line change 88import java .util .Deque ;
99import java .util .concurrent .ConcurrentLinkedDeque ;
1010
11- import static java . util . Objects . requireNonNull ;
11+ import static graphql . Assert . assertNotNull ;
1212
1313/**
1414 * A Publisher of things that are buffered and handles a single subscriber at a time.
@@ -49,7 +49,7 @@ public SingleSubscriberPublisher() {
4949 * @param subscriptionCallback the callback when some ones
5050 */
5151 public SingleSubscriberPublisher (OnSubscriptionCallback subscriptionCallback ) {
52- this .subscriptionCallback = requireNonNull (subscriptionCallback );
52+ this .subscriptionCallback = assertNotNull (subscriptionCallback );
5353 }
5454
5555
@@ -98,7 +98,7 @@ private void handleOnComplete() {
9898
9999 @ Override
100100 public void subscribe (Subscriber <? super T > subscriber ) {
101- requireNonNull (subscriber , "Subscriber passed to subscribe must not be null" );
101+ assertNotNull (subscriber , "Subscriber passed to subscribe must not be null" );
102102 mutex .execute (() -> {
103103 if (this .subscriber == null ) {
104104 this .subscriber = subscriber ;
You can’t perform that action at this time.
0 commit comments