test_class.file: rxjava/src/test/java/io/reactivex/internal/subscriptions/ScalarSubscriptionTest.java
test_class.identifier: ScalarSubscriptionTest
test_case.body: @Test
      public void badRequest() {
          TestSubscriber<Integer> ts = new TestSubscriber<Integer>(0L);
  
          ScalarSubscription<Integer> sc = new ScalarSubscription<Integer>(ts, 1);
  
          List<Throwable> errors = TestHelper.trackPluginErrors();
          try {
              sc.request(-99);
  
              TestHelper.assertError(errors, 0, IllegalArgumentException.class, "n > 0 required but it was -99");
          } finally {
              RxJavaPlugins.reset();
          }
      }
test_case.class_method_signature: ScalarSubscriptionTest.badRequest()
test_case.full_signature: @Test public void badRequest()
test_case.identifier: badRequest
test_case.invocations: trackPluginErrors request assertError reset
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void badRequest()
focal_class.declarator: serialVersionUID = -3830916580126663321L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -3830916580126663321L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: value
focal_class.modifier: final
focal_class.original_string: final T value;
focal_class.type: T
focal_class.var_name: value
focal_class.declarator: subscriber
focal_class.modifier: final
focal_class.original_string: final Subscriber<? super T> subscriber;
focal_class.type: Subscriber<? super T>
focal_class.var_name: subscriber
focal_class.declarator: NO_REQUEST = 0
focal_class.modifier: static final
focal_class.original_string: static final int NO_REQUEST = 0;
focal_class.type: int
focal_class.var_name: NO_REQUEST
focal_class.declarator: REQUESTED = 1
focal_class.modifier: static final
focal_class.original_string: static final int REQUESTED = 1;
focal_class.type: int
focal_class.var_name: REQUESTED
focal_class.declarator: CANCELLED = 2
focal_class.modifier: static final
focal_class.original_string: static final int CANCELLED = 2;
focal_class.type: int
focal_class.var_name: CANCELLED
focal_class.file: rxjava/src/main/java/io/reactivex/internal/subscriptions/ScalarSubscription.java
focal_class.identifier: ScalarSubscription
focal_class.interfaces: implements QueueSubscription<T>
focal_class.class_method_signature: ScalarSubscription.ScalarSubscription(Subscriber<? super T> subscriber, T value)
focal_class.full_signature: public  ScalarSubscription(Subscriber<? super T> subscriber, T value)
focal_class.identifier: ScalarSubscription
focal_class.modifiers: public
focal_class.parameters: (Subscriber<? super T> subscriber, T value)
focal_class.signature:  ScalarSubscription(Subscriber<? super T> subscriber, T value)
focal_class.class_method_signature: ScalarSubscription.request(long n)
focal_class.full_signature: @Override public void request(long n)
focal_class.identifier: request
focal_class.modifiers: @Override public
focal_class.parameters: (long n)
focal_class.return: void
focal_class.signature: void request(long n)
focal_class.class_method_signature: ScalarSubscription.cancel()
focal_class.full_signature: @Override public void cancel()
focal_class.identifier: cancel
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cancel()
focal_class.class_method_signature: ScalarSubscription.isCancelled()
focal_class.full_signature: public boolean isCancelled()
focal_class.identifier: isCancelled
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isCancelled()
focal_class.class_method_signature: ScalarSubscription.offer(T e)
focal_class.full_signature: @Override public boolean offer(T e)
focal_class.identifier: offer
focal_class.modifiers: @Override public
focal_class.parameters: (T e)
focal_class.return: boolean
focal_class.signature: boolean offer(T e)
focal_class.class_method_signature: ScalarSubscription.offer(T v1, T v2)
focal_class.full_signature: @Override public boolean offer(T v1, T v2)
focal_class.identifier: offer
focal_class.modifiers: @Override public
focal_class.parameters: (T v1, T v2)
focal_class.return: boolean
focal_class.signature: boolean offer(T v1, T v2)
focal_class.class_method_signature: ScalarSubscription.poll()
focal_class.full_signature: @Nullable @Override public T poll()
focal_class.identifier: poll
focal_class.modifiers: @Nullable @Override public
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T poll()
focal_class.class_method_signature: ScalarSubscription.isEmpty()
focal_class.full_signature: @Override public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: ScalarSubscription.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: ScalarSubscription.requestFusion(int mode)
focal_class.full_signature: @Override public int requestFusion(int mode)
focal_class.identifier: requestFusion
focal_class.modifiers: @Override public
focal_class.parameters: (int mode)
focal_class.return: int
focal_class.signature: int requestFusion(int mode)
focal_class.superclass: extends AtomicInteger
focal_method.body: @Override
      public void request(long n) {
          if (!SubscriptionHelper.validate(n)) {
              return;
          }
          if (compareAndSet(NO_REQUEST, REQUESTED)) {
              Subscriber<? super T> s = subscriber;
  
              s.onNext(value);
              if (get() != CANCELLED) {
                  s.onComplete();
              }
          }
  
      }
focal_method.class_method_signature: ScalarSubscription.request(long n)
focal_method.full_signature: @Override public void request(long n)
focal_method.identifier: request
focal_method.invocations: validate compareAndSet onNext get onComplete
focal_method.modifiers: @Override public
focal_method.parameters: (long n)
focal_method.return: void
focal_method.signature: void request(long n)