Prevent unnecessary boxing in AddPathBestPath 98/78498/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 6 Dec 2018 11:56:18 +0000 (12:56 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 6 Dec 2018 11:56:18 +0000 (12:56 +0100)
commitbd68371f9f19d5ef46e07d6f89179799f5414fe0
treec7d789930cf82e79c857edf5a11530458850e039
parentb202face7c460983edcd0268b7d134bfb4c20f9a
Prevent unnecessary boxing in AddPathBestPath

The callers are of two varieties: boxed and unboxed. Unboxing is
inherently faster, hence force the single boxed callsite to unbox
allowing us to convert it when needed.

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