Optimize getAs4BytesCapability() 27/84927/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 6 Oct 2019 15:09:19 +0000 (17:09 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 8 Oct 2019 08:18:02 +0000 (08:18 +0000)
commite38bdbb9e40cf509c012408642cdcec788dbf9ab
tree09277c46363b442d9f6d797f0bb71a7235d33625
parent20878c026daddd8c58371f5faba47ff87dfc774e
Optimize getAs4BytesCapability()

Modernizer is pointing out a use of Guava's optional. This is used
for internal interface, so let's just use a nullable return and
proper checks.

Change-Id: I0de8fb7d0bbc1d10e36b9182143340dbbcb9bb4a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/StrictBGPPeerRegistry.java