@Test public void testRemoveProviderNull() { assertThrows(NullPointerException.class, () -> collector.removeProvider(null)); }
public void removeProvider(String provider) { if (provider == null) { throw new NullPointerException("provider"); } logger.note(LogLocation.LOG_FILE, "Removing " + provider); removed.add(provider); for (Type type : types.values()) { type.removeProvider(provider); } }
TypeCollector { public void removeProvider(String provider) { if (provider == null) { throw new NullPointerException("provider"); } logger.note(LogLocation.LOG_FILE, "Removing " + provider); removed.add(provider); for (Type type : types.values()) { type.removeProvider(provider); } } }
TypeCollector { public void removeProvider(String provider) { if (provider == null) { throw new NullPointerException("provider"); } logger.note(LogLocation.LOG_FILE, "Removing " + provider); removed.add(provider); for (Type type : types.values()) { type.removeProvider(provider); } } TypeCollector(Initializer initializer, Logger logger); }
TypeCollector { public void removeProvider(String provider) { if (provider == null) { throw new NullPointerException("provider"); } logger.note(LogLocation.LOG_FILE, "Removing " + provider); removed.add(provider); for (Type type : types.values()) { type.removeProvider(provider); } } TypeCollector(Initializer initializer, Logger logger); void cache(); boolean isModified(); Type getType(String type); Collection<Type> types(); void removeProvider(String provider); @Override String toString(); }
TypeCollector { public void removeProvider(String provider) { if (provider == null) { throw new NullPointerException("provider"); } logger.note(LogLocation.LOG_FILE, "Removing " + provider); removed.add(provider); for (Type type : types.values()) { type.removeProvider(provider); } } TypeCollector(Initializer initializer, Logger logger); void cache(); boolean isModified(); Type getType(String type); Collection<Type> types(); void removeProvider(String provider); @Override String toString();  }