From: BharathS24 Date: Mon, 30 Jul 2018 09:48:01 +0000 (+0530) Subject: Sonar Major issue X-Git-Tag: 4.0.0-ONAP~3^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=3955e21857f73a28226707de4a788b18323aefeb;hp=33617314a1f6dd4b76c956219717beb335763ac7;p=dcaegen2%2Fanalytics%2Ftca.git Sonar Major issue Add a private constructor to hide the implicit public one Sonar Link : https://sonar.onap.org/issues?myIssues=true&open=AWFSduHUof9FJ6jfXJeu&resolved=false Location : src/main/java/org/onap/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java:L54 Change-Id: I7769333d66a58c93dfb5bd31fddff3a6c5fc58a0 Issue-ID: DCAEGEN2-648 Signed-off-by: BharathS24 --- diff --git a/dcae-analytics-test/src/main/java/org/onap/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java b/dcae-analytics-test/src/main/java/org/onap/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java index 6566051..ec29a98 100644 --- a/dcae-analytics-test/src/main/java/org/onap/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java +++ b/dcae-analytics-test/src/main/java/org/onap/dcae/apod/analytics/test/BaseDCAEAnalyticsCommonTest.java @@ -52,10 +52,10 @@ import static java.nio.file.Files.exists; * @author Rajiv Singla . Creation Date: 10/19/2016. */ abstract class BaseDCAEAnalyticsCommonTest { - - protected static final Logger LOG = LoggerFactory.getLogger(BaseDCAEAnalyticsCommonTest.class); - - /** +protected static final Logger LOG = LoggerFactory.getLogger(BaseDCAEAnalyticsCommonTest.class); +protected BaseDCAEAnalyticsCommonTest() { +} + /** * Asserts if expected Json String and actual Json String contain the same properties ignoring * property order. Simple String assertion might fail as property order during serialization and deserialization * is generally non-deterministic. Also proper error message are generated more missing or unexpected