From: Dominik Mizyn Date: Wed, 29 May 2019 10:22:27 +0000 (+0200) Subject: Sonar: Reduce cyclomatic complexity X-Git-Tag: 3.2.0~282^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=788e99d836a75badf45dce96358d184aa9e549f2;hp=788e99d836a75badf45dce96358d184aa9e549f2;p=portal.git Sonar: Reduce cyclomatic complexity Reduce the number of conditional operators for equals(). Improve testEquals() to better cover this method. This patch also: * immediately returns expression instead of assigning it to the temporary variable "str", * adds the "@Override" annotation above equals() method signature. Issue-ID: PORTAL-595 Change-Id: I15f600acce873eb3f22cc405d06a50890c7e87c3 Signed-off-by: Dominik Mizyn ---