diff options
author | PrasadNaidu <RV00493633@techmahindra.com> | 2018-02-13 10:49:17 +0530 |
---|---|---|
committer | PrasadNaidu <RV00493633@techmahindra.com> | 2018-02-13 10:49:53 +0530 |
commit | 65a3f36aa550f5b21874f688762dffa0d4753479 (patch) | |
tree | 691b2c0dad8971923fc1de2806a3d2e3545020a7 /src | |
parent | 90f0306e32e6a1adcbb68c718d2f6e8a97d0be0d (diff) |
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 <RV00493633@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/aai/champ/ChampGraph.java | 5 |
1 files changed, 4 insertions, 1 deletions
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: |