Optimize transaction collection 95/60295/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Jul 2017 15:34:56 +0000 (17:34 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Fri, 14 Jul 2017 17:18:12 +0000 (17:18 +0000)
commit5b094bb7682f8b2172ba4a605a8a715a19d4d6bb
treefc94cdd28446a7881a37a305df1d18eb2bd544cb
parent5d8911c43a7ad34a8f189289567742811f5fd981
Optimize transaction collection

For cases when we have a single transaction it is not necessary
to use Futures.allAsList(). Discover this property and reuse returned
future directly.

Change-Id: I10c2d0371d8bc2c2c0585de41a114adcb7250f3c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-broker/src/main/java/org/opendaylight/mdsal/dom/broker/ShardedDOMDataTreeWriteTransaction.java