Optimize isNonAddPathBestPathTheSame() 18/94318/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 30 Dec 2020 22:54:43 +0000 (23:54 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 31 Dec 2020 00:19:03 +0000 (01:19 +0100)
commit8663d96af24b2e8e4fdcd990f24a160343a8ae93
tree0636b6471527b536de117c27834e0e95152c2b72
parent34a71f2a386b485cc4a78dbc7440d536012335a3
Optimize isNonAddPathBestPathTheSame()

This is an Eclipse automatic logic optimization: in case of bestPath
being empty/null, we do not need to evaluate the second part of the
expression.

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