@Test public void testCancel() { Guice.createInjector(new AbstractModule() { @Override protected void configure() { DelayedError error = DelayedError.create(binder(), "Message"); error.cancel(); } }); }
public void cancel() { checkState(!reported, "This error has already been reported"); error = null; }
DelayedError { public void cancel() { checkState(!reported, "This error has already been reported"); error = null; } }
DelayedError { public void cancel() { checkState(!reported, "This error has already been reported"); error = null; } private  DelayedError(Throwable error); }
DelayedError { public void cancel() { checkState(!reported, "This error has already been reported"); error = null; } private  DelayedError(Throwable error); static DelayedError create(Binder binder, String message, Object... args); static DelayedError create(Binder binder, Throwable t); static DelayedError create(Binder binder, Message message); void cancel(); }
DelayedError { public void cancel() { checkState(!reported, "This error has already been reported"); error = null; } private  DelayedError(Throwable error); static DelayedError create(Binder binder, String message, Object... args); static DelayedError create(Binder binder, Throwable t); static DelayedError create(Binder binder, Message message); void cancel();  }