@Test public void testRegisterStrong() throws Exception { assertEquals(0, Receiver1.lostCount); informer.registerStrong(new Receiver1()); informer.post(11); assertEquals(1, Receiver1.lostCount); }
public void registerStrong(Object subscriber) { register(subscriber, false); }
Informer { public void registerStrong(Object subscriber) { register(subscriber, false); } }
Informer { public void registerStrong(Object subscriber) { register(subscriber, false); } Informer();  Informer(ExceptionListener listener); }
Informer { public void registerStrong(Object subscriber) { register(subscriber, false); } Informer();  Informer(ExceptionListener listener); void post(Object event); void postAfter(final Object event, final long millis); void registerWeak(Object subscriber); void registerStrong(Object subscriber); boolean unregister(Object subscriber); void register(Object subscriber, boolean registerWeak); }
Informer { public void registerStrong(Object subscriber) { register(subscriber, false); } Informer();  Informer(ExceptionListener listener); void post(Object event); void postAfter(final Object event, final long millis); void registerWeak(Object subscriber); void registerStrong(Object subscriber); boolean unregister(Object subscriber); void register(Object subscriber, boolean registerWeak);  }