Reduce use of Optional in ContextChainHolderImpl 62/94362/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 13:52:08 +0000 (14:52 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 15:32:49 +0000 (16:32 +0100)
commit453b39f2e079dfc8def6596f84bb547dc1e80f60
tree324176ad3a99fc32746bb3de95ab85322175aded
parent3cdde4ae98a14feeb0f2b716597f7c1f28ded160
Reduce use of Optional in ContextChainHolderImpl

Optional.ofNullable().ifPresent() can easily be replaced with
a null check, making code clearer. We also end up rewrapping
ownership state -- just drop to using nullable, as that makes
the corresponding check easier.

Change-Id: I74efb538cdf3cf66350a8bcb23d0207070864dc2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/lifecycle/ContextChainHolderImpl.java