aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl
diff options
context:
space:
mode:
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;