Simplify transactionAborted() 10/103410/3
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Nov 2022 09:22:30 +0000 (10:22 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Nov 2022 10:11:50 +0000 (11:11 +0100)
commita99cb35303f49921be39b1c9ace592251d3fd98c
tree7e92b70d6b734763453a4e3fadce61e210bc5b56
parente64ea3a2af7290c0f4d701db49addc565ee4bc43
Simplify transactionAborted()

We have introduced instanceof patterns, which simplify the structure
enough so Sonar points out we should merge if statements. Do that and
inline 'success' as well.

Change-Id: I23bc76a3abe26b25d534e6a22f8b672310f987c1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/store/AbstractSnapshotBackedTransactionChain.java