summaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-09-25 14:04:40 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-25 14:04:40 +0000
commit901720545ae36f6402167f077199d007b8e331d4 (patch)
tree07a918c1e29ad95fd5c0aa25d9aa46b28876115b /controlloop/common/model-impl
parente9298664517c7c83d33e210c8d532f8145b71d33 (diff)
parent8608f7ecb953518e32c180d631378e9d467c2b7a (diff)
Merge "Added the Override annotation"
Diffstat (limited to 'controlloop/common/model-impl')
-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;