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>
}
private boolean isNonAddPathBestPathTheSame(final List<AddPathBestPath> newBestPathList) {
- return !(isEmptyOrNull(this.bestPath) || isEmptyOrNull(newBestPathList))
+ return (!isEmptyOrNull(this.bestPath) && !isEmptyOrNull(newBestPathList))
&& this.bestPath.get(0).equals(newBestPathList.get(0));
}