test_class.file: rxjava/src/test/java/io/reactivex/internal/disposables/ArrayCompositeDisposableTest.java
test_class.identifier: ArrayCompositeDisposableTest
test_case.body: @Test
      public void setRace() {
          for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) {
              final ArrayCompositeDisposable acd = new ArrayCompositeDisposable(2);
  
              Runnable r = new Runnable() {
                  @Override
                  public void run() {
                      acd.setResource(0, Disposables.empty());
                  }
              };
  
              TestHelper.race(r, r);
          }
      }
test_case.class_method_signature: ArrayCompositeDisposableTest.setRace()
test_case.full_signature: @Test public void setRace()
test_case.identifier: setRace
test_case.invocations: setResource empty race
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void setRace()
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/disposables/ArrayCompositeDisposable.java
focal_class.identifier: ArrayCompositeDisposable
focal_class.interfaces: implements Disposable
focal_class.class_method_signature: ArrayCompositeDisposable.ArrayCompositeDisposable(int capacity)
focal_class.full_signature: public  ArrayCompositeDisposable(int capacity)
focal_class.identifier: ArrayCompositeDisposable
focal_class.modifiers: public
focal_class.parameters: (int capacity)
focal_class.signature:  ArrayCompositeDisposable(int capacity)
focal_class.class_method_signature: ArrayCompositeDisposable.setResource(int index, Disposable resource)
focal_class.full_signature: public boolean setResource(int index, Disposable resource)
focal_class.identifier: setResource
focal_class.modifiers: public
focal_class.parameters: (int index, Disposable resource)
focal_class.return: boolean
focal_class.signature: boolean setResource(int index, Disposable resource)
focal_class.class_method_signature: ArrayCompositeDisposable.replaceResource(int index, Disposable resource)
focal_class.full_signature: public Disposable replaceResource(int index, Disposable resource)
focal_class.identifier: replaceResource
focal_class.modifiers: public
focal_class.parameters: (int index, Disposable resource)
focal_class.return: Disposable
focal_class.signature: Disposable replaceResource(int index, Disposable resource)
focal_class.class_method_signature: ArrayCompositeDisposable.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: ArrayCompositeDisposable.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<Disposable>
focal_method.body: public boolean setResource(int index, Disposable resource) {
          for (;;) {
              Disposable o = get(index);
              if (o == DisposableHelper.DISPOSED) {
                  resource.dispose();
                  return false;
              }
              if (compareAndSet(index, o, resource)) {
                  if (o != null) {
                      o.dispose();
                  }
                  return true;
              }
          }
      }
focal_method.class_method_signature: ArrayCompositeDisposable.setResource(int index, Disposable resource)
focal_method.full_signature: public boolean setResource(int index, Disposable resource)
focal_method.identifier: setResource
focal_method.invocations: get dispose compareAndSet dispose
focal_method.modifiers: public
focal_method.parameters: (int index, Disposable resource)
focal_method.return: boolean
focal_method.signature: boolean setResource(int index, Disposable resource)