test_class.file: rxjava/src/test/java/io/reactivex/internal/disposables/ListCompositeDisposableTest.java
test_class.identifier: ListCompositeDisposableTest
test_case.body: @Test
      public void disposeThrows() {
          Disposable d = new Disposable() {
  
              @Override
              public void dispose() {
                  throw new TestException();
              }
  
              @Override
              public boolean isDisposed() {
                  return false;
              }
  
          };
  
          ListCompositeDisposable lcd = new ListCompositeDisposable(d, d);
  
          try {
              lcd.dispose();
              fail("Should have thrown!");
          } catch (CompositeException ex) {
              List<Throwable> list = ex.getExceptions();
              TestHelper.assertError(list, 0, TestException.class);
              TestHelper.assertError(list, 1, TestException.class);
          }
  
          lcd = new ListCompositeDisposable(d);
  
          try {
              lcd.dispose();
              fail("Should have thrown!");
          } catch (TestException  ex) {
              // expected
          }
      }
test_case.class_method_signature: ListCompositeDisposableTest.disposeThrows()
test_case.full_signature: @Test public void disposeThrows()
test_case.identifier: disposeThrows
test_case.invocations: dispose fail getExceptions assertError assertError dispose fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void disposeThrows()
focal_class.declarator: resources
focal_class.original_string: List<Disposable> resources;
focal_class.type: List<Disposable>
focal_class.var_name: resources
focal_class.declarator: disposed
focal_class.modifier: volatile
focal_class.original_string: volatile boolean disposed;
focal_class.type: boolean
focal_class.var_name: disposed
focal_class.file: rxjava/src/main/java/io/reactivex/internal/disposables/ListCompositeDisposable.java
focal_class.identifier: ListCompositeDisposable
focal_class.interfaces: implements Disposable, DisposableContainer
focal_class.class_method_signature: ListCompositeDisposable.ListCompositeDisposable()
focal_class.full_signature: public  ListCompositeDisposable()
focal_class.identifier: ListCompositeDisposable
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ListCompositeDisposable()
focal_class.class_method_signature: ListCompositeDisposable.ListCompositeDisposable(Disposable... resources)
focal_class.full_signature: public  ListCompositeDisposable(Disposable... resources)
focal_class.identifier: ListCompositeDisposable
focal_class.modifiers: public
focal_class.parameters: (Disposable... resources)
focal_class.signature:  ListCompositeDisposable(Disposable... resources)
focal_class.class_method_signature: ListCompositeDisposable.ListCompositeDisposable(Iterable<? extends Disposable> resources)
focal_class.full_signature: public  ListCompositeDisposable(Iterable<? extends Disposable> resources)
focal_class.identifier: ListCompositeDisposable
focal_class.modifiers: public
focal_class.parameters: (Iterable<? extends Disposable> resources)
focal_class.signature:  ListCompositeDisposable(Iterable<? extends Disposable> resources)
focal_class.class_method_signature: ListCompositeDisposable.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: ListCompositeDisposable.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.class_method_signature: ListCompositeDisposable.add(Disposable d)
focal_class.full_signature: @Override public boolean add(Disposable d)
focal_class.identifier: add
focal_class.modifiers: @Override public
focal_class.parameters: (Disposable d)
focal_class.return: boolean
focal_class.signature: boolean add(Disposable d)
focal_class.class_method_signature: ListCompositeDisposable.addAll(Disposable... ds)
focal_class.full_signature: public boolean addAll(Disposable... ds)
focal_class.identifier: addAll
focal_class.modifiers: public
focal_class.parameters: (Disposable... ds)
focal_class.return: boolean
focal_class.signature: boolean addAll(Disposable... ds)
focal_class.class_method_signature: ListCompositeDisposable.remove(Disposable d)
focal_class.full_signature: @Override public boolean remove(Disposable d)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (Disposable d)
focal_class.return: boolean
focal_class.signature: boolean remove(Disposable d)
focal_class.class_method_signature: ListCompositeDisposable.delete(Disposable d)
focal_class.full_signature: @Override public boolean delete(Disposable d)
focal_class.identifier: delete
focal_class.modifiers: @Override public
focal_class.parameters: (Disposable d)
focal_class.return: boolean
focal_class.signature: boolean delete(Disposable d)
focal_class.class_method_signature: ListCompositeDisposable.clear()
focal_class.full_signature: public void clear()
focal_class.identifier: clear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: ListCompositeDisposable.dispose(List<Disposable> set)
focal_class.full_signature:  void dispose(List<Disposable> set)
focal_class.identifier: dispose
focal_class.parameters: (List<Disposable> set)
focal_class.return: void
focal_class.signature: void dispose(List<Disposable> set)
focal_method.body: @Override
      public void dispose() {
          if (disposed) {
              return;
          }
          List<Disposable> set;
          synchronized (this) {
              if (disposed) {
                  return;
              }
              disposed = true;
              set = resources;
              resources = null;
          }
  
          dispose(set);
      }
focal_method.class_method_signature: ListCompositeDisposable.dispose()
focal_method.full_signature: @Override public void dispose()
focal_method.identifier: dispose
focal_method.invocations: dispose
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void dispose()