Fix eclipse nullness warnings 74/78474/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Dec 2018 16:49:56 +0000 (17:49 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 5 Dec 2018 19:28:03 +0000 (19:28 +0000)
commit0663fd7e1b4a86bf815a7a04555eef61d229dab7
treef8d30ef1b38d32242e28dea12e4ca3f3efa55770
parent3a8e4c097664e41fef3d23385fe9d0c308732994
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