@Test public void shouldDeletingNonExistingStorageBeSafe() throws IOException { final StorageFactory storageFactory = new StorageFactory() { @Override protected Storage create(final String id, final int maximumSize) throws IOException { return createStorage(); } }; storageFactory.delete("id"); }
@Idempotent public void delete(String id) throws IOException { }
StorageFactory implements Closeable { @Idempotent public void delete(String id) throws IOException { } }
StorageFactory implements Closeable { @Idempotent public void delete(String id) throws IOException { }  }
StorageFactory implements Closeable { @Idempotent public void delete(String id) throws IOException { }  final T createOrGet(final String id, final int granularity, final long duration); @Idempotent @Override final void close(); @Idempotent final boolean close(final String id); @Idempotent void delete(String id); }
StorageFactory implements Closeable { @Idempotent public void delete(String id) throws IOException { }  final T createOrGet(final String id, final int granularity, final long duration); @Idempotent @Override final void close(); @Idempotent final boolean close(final String id); @Idempotent void delete(String id);  }