test_class.file: rxjava/src/test/java/io/reactivex/internal/subscriptions/ArrayCompositeSubscriptionTest.java
test_class.identifier: ArrayCompositeSubscriptionTest
test_case.body: @Test
      public void disposeRace() {
          for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) {
              final ArrayCompositeSubscription ac = new ArrayCompositeSubscription(1000);
  
              Runnable r = new Runnable() {
                  @Override
                  public void run() {
                      ac.dispose();
                  }
              };
  
              TestHelper.race(r, r);
          }
      }
test_case.class_method_signature: ArrayCompositeSubscriptionTest.disposeRace()
test_case.full_signature: @Test public void disposeRace()
test_case.identifier: disposeRace
test_case.invocations: dispose race
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void disposeRace()
focal_class.declarator: serialVersionUID = 2746389416410565408L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 2746389416410565408L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: rxjava/src/main/java/io/reactivex/internal/subscriptions/ArrayCompositeSubscription.java
focal_class.identifier: ArrayCompositeSubscription
focal_class.interfaces: implements Disposable
focal_class.class_method_signature: ArrayCompositeSubscription.ArrayCompositeSubscription(int capacity)
focal_class.full_signature: public  ArrayCompositeSubscription(int capacity)
focal_class.identifier: ArrayCompositeSubscription
focal_class.modifiers: public
focal_class.parameters: (int capacity)
focal_class.signature:  ArrayCompositeSubscription(int capacity)
focal_class.class_method_signature: ArrayCompositeSubscription.setResource(int index, Subscription resource)
focal_class.full_signature: public boolean setResource(int index, Subscription resource)
focal_class.identifier: setResource
focal_class.modifiers: public
focal_class.parameters: (int index, Subscription resource)
focal_class.return: boolean
focal_class.signature: boolean setResource(int index, Subscription resource)
focal_class.class_method_signature: ArrayCompositeSubscription.replaceResource(int index, Subscription resource)
focal_class.full_signature: public Subscription replaceResource(int index, Subscription resource)
focal_class.identifier: replaceResource
focal_class.modifiers: public
focal_class.parameters: (int index, Subscription resource)
focal_class.return: Subscription
focal_class.signature: Subscription replaceResource(int index, Subscription resource)
focal_class.class_method_signature: ArrayCompositeSubscription.dispose()
focal_class.full_signature: @Override public void dispose()
focal_class.identifier: dispose
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispose()
focal_class.class_method_signature: ArrayCompositeSubscription.isDisposed()
focal_class.full_signature: @Override public boolean isDisposed()
focal_class.identifier: isDisposed
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDisposed()
focal_class.superclass: extends AtomicReferenceArray<Subscription>
focal_method.body: @Override
      public void dispose() {
          if (get(0) != SubscriptionHelper.CANCELLED) {
              int s = length();
              for (int i = 0; i < s; i++) {
                  Subscription o = get(i);
                  if (o != SubscriptionHelper.CANCELLED) {
                      o = getAndSet(i, SubscriptionHelper.CANCELLED);
                      if (o != SubscriptionHelper.CANCELLED && o != null) {
                          o.cancel();
                      }
                  }
              }
          }
      }
focal_method.class_method_signature: ArrayCompositeSubscription.dispose()
focal_method.full_signature: @Override public void dispose()
focal_method.identifier: dispose
focal_method.invocations: get length get getAndSet cancel
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void dispose()