From: PrasadNaidu Date: Tue, 13 Feb 2018 05:19:17 +0000 (+0530) Subject: Add a private constructor X-Git-Tag: v1.2.2~48 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=65a3f36aa550f5b21874f688762dffa0d4753479;p=aai%2Fchamp.git Add a private constructor Add a private constructor to hide the implicit public one ChampGraph.java:L62 Sonar Link : https://sonar.onap.org/component_issues/index?id=org.onap.aai%3Achamp# Location : src/main/java/org/onap/aai/champ/ChampGraph.java Change-Id: I402638841541fafc8c7b1b81d27bf2ea53686502 Issue-ID: AAI-744 Signed-off-by: PrasadNaidu --- diff --git a/src/main/java/org/onap/aai/champ/ChampGraph.java b/src/main/java/org/onap/aai/champ/ChampGraph.java index 2ec2209..2762e43 100644 --- a/src/main/java/org/onap/aai/champ/ChampGraph.java +++ b/src/main/java/org/onap/aai/champ/ChampGraph.java @@ -59,7 +59,10 @@ public interface ChampGraph { * If finer control is needed, you should consider accessing an implementation's * constructors/builders. */ - public static class Factory { + public static final class Factory { + private Factory(){ + //not called + } public static ChampGraph newInstance(ChampGraph.Type type, String graphName) { switch (type) { case IN_MEMORY: