aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-25 19:07:04 +0530
committerrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-25 19:08:23 +0530
commit8608f7ecb953518e32c180d631378e9d467c2b7a (patch)
tree01b4ae31f51344566f89556bd818c826ad803566
parent43731b275d43e106a38e2c490b894b0022fef129 (diff)
Added the Override annotation
Added diamond symbol on RHS side Change-Id: I3945e5f2217f74b71fa143b128f271e48b4882a7 Issue-ID: POLICY-239 Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
-rw-r--r--controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopTargetType.java1
-rw-r--r--controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java4
-rw-r--r--controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java4
3 files changed, 5 insertions, 4 deletions
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<String, String> AAI = new HashMap<String, String>();
+ public Map<String, String> AAI = new HashMap<>();
public VirtualControlLoopEvent() {
}
@@ -43,7 +43,7 @@ public class VirtualControlLoopEvent extends ControlLoopEvent {
return;
}
if (event.AAI != null) {
- this.AAI = new HashMap<String, String>(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<String, String> AAI = new HashMap<String, String>();
+ public Map<String, String> 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<String, String>(event.AAI);
+ this.AAI = new HashMap<>(event.AAI);
}
this.closedLoopAlarmStart = event.closedLoopAlarmStart;
this.closedLoopAlarmEnd = event.closedLoopAlarmEnd;