X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fchamp%2FChampGraph.java;h=2762e43155573c130fb8ecf20e1f61b014956dae;hb=9fc28cff11a4b570618c0f533ce9de6209a5dd0c;hp=c70294be47529dcaa55f1226feb8c30f6ab400a6;hpb=90b737757ff790d199458c51f7e09c4806b4ba34;p=aai%2Fchamp.git diff --git a/src/main/java/org/onap/aai/champ/ChampGraph.java b/src/main/java/org/onap/aai/champ/ChampGraph.java index c70294b..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: @@ -70,7 +73,6 @@ public interface ChampGraph { .build(); /* case DSE: //See above, DSE still in beta - return new DseChampGraphImpl.Builder("localhost").build(); */ default: throw new RuntimeException("Unknown type of ChampAPI implementation");