Simplify ListenableFuture translation 27/74827/4
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 4 Aug 2018 01:09:51 +0000 (03:09 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 6 Aug 2018 11:29:35 +0000 (11:29 +0000)
commit7aaa993c7f3ed5cb11ffede692ef23f4ed2c9e47
treef0cd17c74efae921e1027009a153150f569b4e93
parent4eafc030622cc6dc155c452b6c6547eac7b5b616
Simplify ListenableFuture translation

We can forgo instantiation of immediate futures by using a simple
.transform(Optional::fromJavaUtil).

Change-Id: If33247bc473852d739f593bb7e752323b3ac6583
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/compat/LegacyDOMStoreAdapter.java
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/broker/impl/legacy/sharded/adapter/ShardedDOMDataBrokerDelegatingReadTransaction.java
opendaylight/md-sal/sal-dom-compat/src/main/java/org/opendaylight/controller/sal/core/compat/DOMStoreReadTransactionAdapter.java
opendaylight/md-sal/sal-dom-compat/src/main/java/org/opendaylight/controller/sal/core/compat/LegacyDOMDataBrokerAdapter.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.