Using SettableFuture<?> implies possible requirement of non-nullness.
If we provise a Void, it is understand to only be null, which is what
we really want here.
Change-Id: I06f2d90cd5bb1c8f7959170d8b8d936b3c714323
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
class FutureSchema implements AutoCloseable {
private final List<FutureSchemaPredicate> postponedOperations = new CopyOnWriteArrayList<>();
- private final SettableFuture<?> schemaPromise = SettableFuture.create();
+ private final SettableFuture<Void> schemaPromise = SettableFuture.create();
private final long duration;
private final TimeUnit unit;