Prevent unnecessary boxing in AddPathBestPath 19/78519/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 6 Dec 2018 11:56:18 +0000 (12:56 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 7 Dec 2018 10:03:35 +0000 (10:03 +0000)
commitf946c297156c935d46f7dedb02d82f7702370f63
tree9bbbb94ed0394cf1dfcb41d662c8f4a962c2f8e9
parentf5a4d1aa641dfb8007e7fc7235ef376730722557
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