Use DistinctNodeContainer.getChildByArg() 06/97606/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 23 Sep 2021 10:00:00 +0000 (12:00 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 23 Sep 2021 10:06:30 +0000 (12:06 +0200)
commit7a62730b3ed8b492f6e39b997fb4915488372c10
treed9badae2368ed967e14e28f1233e7be3fbbfd55f
parent6e49566d7710e93691556c2c1c9e4cb27aa9b9c1
Use DistinctNodeContainer.getChildByArg()

The check implied by Optional.get() differs only by the exception thrown
-- and VerifyException is more appropriate. By same token we can
side-step the Optional and use childByArg() instead.

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