Add a private constructor 19/30819/2
authorPrasadNaidu <RV00493633@techmahindra.com>
Tue, 13 Feb 2018 05:19:17 +0000 (10:49 +0530)
committerPrasadNaidu <RV00493633@techmahindra.com>
Tue, 13 Feb 2018 05:19:53 +0000 (10:49 +0530)
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 <RV00493633@techmahindra.com>
src/main/java/org/onap/aai/champ/ChampGraph.java

index 2ec2209..2762e43 100644 (file)
@@ -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: