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>
* 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: