From: Jim Hahn Date: Wed, 12 Jun 2019 18:32:25 +0000 (-0400) Subject: Apply simple sonar fixes X-Git-Tag: 1.5.0~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ea262e6da52fd4da0733f02998f87aebaf502ddb;p=policy%2Fcommon.git Apply simple sonar fixes Note: A number of these were identified, by SonarLint, in the Test classes, which are not typically scanned by Sonar. Removed unnecessary imports. Removed unneeded "throws Xxx". Replaced lambda with method references. Replaced duplicate strings with constants. Replaced try-fail-catch with assert-j methods to eliminate sonar complaints about duplicate failure messages. Added missing @Override annotations. Use map.computeIfAbsent() where appropriate. Also fixed some minor checkstyle issues. Removed unneeded "volatile" declarations. Replaced some if-else constructs with "?:" construct, per sonar. Replaced Object.wait() with CountDownLatch.await(); according to sonar (and javadocs), Object.wait() can return due to "spurious wakeups". Fixed issue whereby CryptoUtilsTest wouldn't run in my Eclipse. Change-Id: Ib6b71ed65662cfd6209400dac57ed69279bf29ec Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn --- diff --git a/common-parameters/pom.xml b/common-parameters/pom.xml index 0f1e9dfc..fc47b402 100644 --- a/common-parameters/pom.xml +++ b/common-parameters/pom.xml @@ -1,6 +1,7 @@