From 65a3f36aa550f5b21874f688762dffa0d4753479 Mon Sep 17 00:00:00 2001 From: PrasadNaidu Date: Tue, 13 Feb 2018 10:49:17 +0530 Subject: 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 --- src/main/java/org/onap/aai/champ/ChampGraph.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit 1.2.3-korg