Fix eclipse nullness warnings 67/78467/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Dec 2018 16:49:56 +0000 (17:49 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Dec 2018 16:53:40 +0000 (17:53 +0100)
commit9ccc81975ba61deedcaa7246de1f0547a2baa658
tree3a375cce597a91b40612cf884982238e9bb38dbd
parente15fc4730b3a6be349b89221602c174486466bdf
Fix eclipse nullness warnings

Eclipse does not understand that Attributes is expected to be
immutable, hence it emits warnings about items being potentially
null.

Since normally we get attributes from the datastore, it is actually
helpful to store them in local variables, preventing roundtrips
to LazyDataObject -- fixing warnings as well.

Change-Id: I82fc82a69b07c739af566a069d225bbf18db98ae
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/path-selection-mode/src/main/java/org/opendaylight/protocol/bgp/mode/impl/BestPathStateImpl.java