Fix sonar issues with visibility 32/116132/1
authorPamela Dragosh <pdragosh@research.att.com>
Fri, 4 Dec 2020 14:10:02 +0000 (09:10 -0500)
committerPamela Dragosh <pdragosh@research.att.com>
Fri, 4 Dec 2020 14:10:07 +0000 (09:10 -0500)
S5993 Change the visibility of this constructor to "protected".

Issue-ID: POLICY-2912
Change-Id: I2fd9fcd3162c8bf28ba0315939ef259356f442db
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/matchable/MatchablePropertyTypeBase.java
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/std/StdOnapPip.java
applications/common/src/main/java/org/onap/policy/pdp/xacml/application/common/std/StdXacmlApplicationServiceProvider.java

index b98ef9f..3133978 100644 (file)
@@ -32,11 +32,11 @@ public abstract class MatchablePropertyTypeBase<T> implements MatchablePropertyT
     private ToscaProperty toscaProperty;
     private ToscaSchemaDefinition toscaSchema;
 
-    public MatchablePropertyTypeBase(ToscaProperty inProperty) {
+    protected MatchablePropertyTypeBase(ToscaProperty inProperty) {
         this.toscaProperty = inProperty;
     }
 
-    public MatchablePropertyTypeBase(ToscaSchemaDefinition inSchema) {
+    protected MatchablePropertyTypeBase(ToscaSchemaDefinition inSchema) {
         this.toscaSchema = inSchema;
     }
 
index 753daa2..4cf2365 100644 (file)
@@ -70,7 +70,7 @@ public abstract class StdOnapPip extends StdConfigurableEngine {
     protected String issuer;
     protected boolean shutdown = false;
 
-    public StdOnapPip() {
+    protected StdOnapPip() {
         super();
     }
 
index 465e3f5..28b861d 100644 (file)
@@ -68,7 +68,7 @@ public abstract class StdXacmlApplicationServiceProvider implements XacmlApplica
     private PDPEngine pdpEngine = null;
     private Map<ToscaPolicy, Path> mapLoadedPolicies = new HashMap<>();
 
-    public StdXacmlApplicationServiceProvider() {
+    protected StdXacmlApplicationServiceProvider() {
         super();
     }