AsyncWriteTransaction submit() with @CheckReturnValue 61/66361/7
authorMichael Vorburger <vorburger@redhat.com>
Mon, 11 Dec 2017 22:17:16 +0000 (23:17 +0100)
committerRobert Varga <nite@hq.sk>
Sun, 6 May 2018 20:02:55 +0000 (20:02 +0000)
this seems like a good idea because we would subsequently like to reduce
the internal logging from a WARN for TransactionCommitFailedException to
a DEBUG.

see CONTROLLER-1802 and NETVIRT-916 for the full background story to
where this comes from.

Change-Id: I2de692dfc4d1b2de7d10a56e4341c153214da62d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
common/mdsal-common-api/src/main/java/org/opendaylight/mdsal/common/api/AsyncWriteTransaction.java

index 535ee52327bc21502d5fe1610081edd0e9b28df4..46697aeae8f14cd8cf39c4d9a122b350914a1a99 100644 (file)
@@ -468,6 +468,7 @@ public interface AsyncWriteTransaction<P extends Path<P>, D> extends AsyncTransa
      * @deprecated Use {@link #commit()} instead.
      */
     @Deprecated
+    @CheckReturnValue
     CheckedFuture<Void, TransactionCommitFailedException> submit();
 
     /**