summaryrefslogtreecommitdiffstats
path: root/PolicyEngineUtils/src/main/java/org/onap/policy/std/NotificationStore.java
diff options
context:
space:
mode:
authorMagnusen, Drew (dm741q) <dm741q@att.com>2017-12-21 12:03:33 -0600
committerMagnusen, Drew (dm741q) <dm741q@att.com>2017-12-21 12:57:52 -0600
commit7a0d068cd318eedce284c48dd46faccf2f5335ec (patch)
tree53fe30c42a0a630cbbd975c409c0428bedb207c1 /PolicyEngineUtils/src/main/java/org/onap/policy/std/NotificationStore.java
parent85e767c65b23a1fef35e5a0199a57bf755070815 (diff)
Sonar cleanup for PolicyEngineUtils
Changes to resolve some sonar "major" issues in the PolicyEngineUtils module. Patch 2: Updated the NotificationStoreTest junit to account for the return of a "Collections.emptyList()" rather than "null" in StdPDPNotification class. Patch 3: Updated the StdPDPNotificationTest junit to account for the return of a "Collections.emptyList()" rather than "null" in StdPDPNotifaction class. Issue-ID: POLICY-474 Change-Id: I925774ac181fd38d1206637f47ab27ba499629ef Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
Diffstat (limited to 'PolicyEngineUtils/src/main/java/org/onap/policy/std/NotificationStore.java')
-rw-r--r--PolicyEngineUtils/src/main/java/org/onap/policy/std/NotificationStore.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/PolicyEngineUtils/src/main/java/org/onap/policy/std/NotificationStore.java b/PolicyEngineUtils/src/main/java/org/onap/policy/std/NotificationStore.java
index 8c6c9580d..47b23605d 100644
--- a/PolicyEngineUtils/src/main/java/org/onap/policy/std/NotificationStore.java
+++ b/PolicyEngineUtils/src/main/java/org/onap/policy/std/NotificationStore.java
@@ -40,6 +40,11 @@ public class NotificationStore {
private static StdPDPNotification notificationRecord = new StdPDPNotification();
+ public NotificationStore () {
+ // Sonar prefers that we have an empty public constructor
+ // as opposed to an implicit public constructor.
+ }
+
public static StdPDPNotification getDeltaNotification(StdPDPNotification newNotification) {
StdPDPNotification notificationDelta = new StdPDPNotification();
ArrayList<StdRemovedPolicy> removedDelta = new ArrayList<>();