From 8608f7ecb953518e32c180d631378e9d467c2b7a Mon Sep 17 00:00:00 2001 From: rama-huawei Date: Mon, 25 Sep 2017 19:07:04 +0530 Subject: Added the Override annotation Added diamond symbol on RHS side Change-Id: I3945e5f2217f74b71fa143b128f271e48b4882a7 Issue-ID: POLICY-239 Signed-off-by: rama-huawei --- .../main/java/org/onap/policy/controlloop/ControlLoopTargetType.java | 1 + .../java/org/onap/policy/controlloop/VirtualControlLoopEvent.java | 4 ++-- .../org/onap/policy/controlloop/VirtualControlLoopNotification.java | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'controlloop/common') diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopTargetType.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopTargetType.java index f0e4627a3..747dc7607 100644 --- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopTargetType.java +++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopTargetType.java @@ -33,6 +33,7 @@ public enum ControlLoopTargetType { this.type = type; } + @Override public String toString() { return this.type; } diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java index bc3d2beb7..932da84fc 100644 --- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java +++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java @@ -32,7 +32,7 @@ public class VirtualControlLoopEvent extends ControlLoopEvent { private static final long serialVersionUID = -5752405682246066226L; public Instant closedLoopAlarmStart; public Instant closedLoopAlarmEnd; - public Map AAI = new HashMap(); + public Map AAI = new HashMap<>(); public VirtualControlLoopEvent() { } @@ -43,7 +43,7 @@ public class VirtualControlLoopEvent extends ControlLoopEvent { return; } if (event.AAI != null) { - this.AAI = new HashMap(event.AAI); + this.AAI = new HashMap<>(event.AAI); } this.closedLoopAlarmStart = event.closedLoopAlarmStart; this.closedLoopAlarmEnd = event.closedLoopAlarmEnd; diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java index f97c609c7..7415fccf0 100644 --- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java +++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java @@ -31,7 +31,7 @@ public class VirtualControlLoopNotification extends ControlLoopNotification { */ private static final long serialVersionUID = 5354756047932144017L; - public Map AAI = new HashMap(); + public Map AAI = new HashMap<>(); public Instant closedLoopAlarmStart; public Instant closedLoopAlarmEnd; @@ -44,7 +44,7 @@ public class VirtualControlLoopNotification extends ControlLoopNotification { return; } if (event.AAI != null) { - this.AAI = new HashMap(event.AAI); + this.AAI = new HashMap<>(event.AAI); } this.closedLoopAlarmStart = event.closedLoopAlarmStart; this.closedLoopAlarmEnd = event.closedLoopAlarmEnd; -- cgit 1.2.3-korg