Fixing sonar issues in policy-pap 23/116123/1
authora.sreekumar <ajith.sreekumar@bell.ca>
Fri, 4 Dec 2020 10:22:17 +0000 (10:22 +0000)
committera.sreekumar <ajith.sreekumar@bell.ca>
Fri, 4 Dec 2020 10:23:47 +0000 (10:23 +0000)
Change-Id: I0f81906098c310aa5c437a2c06b708ae27560af8
Issue-ID: POLICY-2911
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
main/src/main/java/org/onap/policy/pap/main/comm/MultiPdpStatusListener.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestImpl.java
main/src/main/java/org/onap/policy/pap/main/notification/PolicyCommonTracker.java
main/src/main/java/org/onap/policy/pap/main/rest/ProviderBase.java

index f3cac7e..65f448e 100644 (file)
@@ -3,6 +3,7 @@
  * ONAP PAP
  * ================================================================================
  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -55,7 +56,7 @@ public abstract class MultiPdpStatusListener implements TypedMessageListener<Pdp
      *
      * @param id ID for which to wait
      */
-    public MultiPdpStatusListener(String id) {
+    protected MultiPdpStatusListener(String id) {
         unseenIds.add(id);
     }
 
@@ -64,7 +65,7 @@ public abstract class MultiPdpStatusListener implements TypedMessageListener<Pdp
      *
      * @param ids IDs for which to wait
      */
-    public MultiPdpStatusListener(Collection<String> ids) {
+    protected MultiPdpStatusListener(Collection<String> ids) {
         if (ids.isEmpty()) {
             allSeen.countDown();
 
index d1ac3d1..7e0397a 100644 (file)
@@ -3,6 +3,7 @@
  * ONAP PAP
  * ================================================================================
  * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -106,7 +107,7 @@ public abstract class RequestImpl implements Request {
      *
      * @throws IllegalArgumentException if a required parameter is not set
      */
-    public RequestImpl(@NonNull RequestParams params, @NonNull String name, @NonNull PdpMessage message) {
+    protected RequestImpl(@NonNull RequestParams params, @NonNull String name, @NonNull PdpMessage message) {
         params.validate();
 
         this.name = name;
index 5f702da..bd14ffb 100644 (file)
@@ -3,6 +3,7 @@
  * ONAP PAP
  * ================================================================================
  * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -53,7 +54,7 @@ public abstract class PolicyCommonTracker {
     /**
      * Constructs the object.
      */
-    public PolicyCommonTracker() {
+    protected PolicyCommonTracker() {
         super();
     }
 
index d567b6d..0b8da90 100644 (file)
@@ -4,6 +4,7 @@
  * ================================================================================
  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
  * Modifications Copyright (C) 2020 Nordix Foundation.
+ * Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -76,7 +77,7 @@ public abstract class ProviderBase {
     /**
      * Constructs the object.
      */
-    public ProviderBase() {
+    protected ProviderBase() {
         this.updateLock = Registry.get(PapConstants.REG_PDP_MODIFY_LOCK, Object.class);
         this.requestMap = Registry.get(PapConstants.REG_PDP_MODIFY_MAP, PdpModifyRequestMap.class);
         this.daoFactory = Registry.get(PapConstants.REG_PAP_DAO_FACTORY, PolicyModelsProviderFactoryWrapper.class);