Fix null warning in FutureSchema 08/56508/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 3 May 2017 21:38:45 +0000 (23:38 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 4 May 2017 13:03:01 +0000 (15:03 +0200)
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>
binding/mdsal-binding-dom-adapter/src/main/java/org/opendaylight/mdsal/binding/dom/adapter/FutureSchema.java

index 1e107a16034776a5c120b96cfadc5f1753f8fe23..6c7c12b5feab884abf3465b6cf62b5dced75c709 100644 (file)
@@ -25,7 +25,7 @@ import org.opendaylight.yangtools.yang.binding.Augmentation;
 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;