Added the Override annotation 85/15085/1
authorrama-huawei <rama.subba.reddy.s@huawei.com>
Mon, 25 Sep 2017 13:37:04 +0000 (19:07 +0530)
committerrama-huawei <rama.subba.reddy.s@huawei.com>
Mon, 25 Sep 2017 13:38:23 +0000 (19:08 +0530)
Added diamond symbol on RHS side

Change-Id: I3945e5f2217f74b71fa143b128f271e48b4882a7
Issue-ID: POLICY-239
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopTargetType.java
controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java
controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java

index f0e4627..747dc76 100644 (file)
@@ -33,6 +33,7 @@ public enum ControlLoopTargetType {
                this.type = type;
        }
        
+       @Override
        public String toString() {
                return this.type;
        }
index bc3d2be..932da84 100644 (file)
@@ -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;
index f97c609..7415fcc 100644 (file)
@@ -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;