From 86648613c7f24878ab1ff92eafce9018b4e9fde5 Mon Sep 17 00:00:00 2001 From: shashikanth Date: Tue, 26 Sep 2017 11:23:09 +0530 Subject: Added "@Override" annotation method signature https://sonar.onap.org/component_issues?id=org.openecomp.so%3Aso#resolved=false|severities=MAJOR|fileUuids=AV3Bnsck5bp_wwmIVB7V|rules=squid%3AS2293%2Csquid%3AS1161 Issue-Id:SO-118 Change-Id: Iea674f0d8f4f0b9cef346f8c5315b02767ae65f4 Signed-off-by: shashikanth.vh --- .../mso/db/catalog/beans/ServiceMacroHolder.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'mso-catalog-db') diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolder.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolder.java index e8b33bac4b..d4d0507f20 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolder.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolder.java @@ -44,9 +44,9 @@ public class ServiceMacroHolder implements Serializable { super(); this.service = null; this.vnfResources = new ArrayList(); - this.networkResourceCustomizations = new ArrayList(); - this.allottedResourceCustomizations = new ArrayList(); - this.vnfResourceCustomizations = new ArrayList(); + this.networkResourceCustomizations = new ArrayList<>(); + this.allottedResourceCustomizations = new ArrayList<>(); + this.vnfResourceCustomizations = new ArrayList<>(); } public ServiceMacroHolder(Service service) { this(); @@ -71,7 +71,7 @@ public class ServiceMacroHolder implements Serializable { if (this.vnfResources != null) { this.vnfResources.add(vr); } else { - this.vnfResources = new ArrayList(); + this.vnfResources = new ArrayList<>(); this.vnfResources.add(vr); } } @@ -88,7 +88,7 @@ public class ServiceMacroHolder implements Serializable { if (this.vnfResourceCustomizations != null) { this.vnfResourceCustomizations.add(vrc); } else { - this.vnfResourceCustomizations = new ArrayList(); + this.vnfResourceCustomizations = new ArrayList<>(); this.vnfResourceCustomizations.add(vrc); } } @@ -104,7 +104,7 @@ public class ServiceMacroHolder implements Serializable { if (this.networkResourceCustomizations != null) { this.networkResourceCustomizations.add(nrc); } else { - this.networkResourceCustomizations = new ArrayList(); + this.networkResourceCustomizations = new ArrayList<>(); this.networkResourceCustomizations.add(nrc); } } @@ -119,11 +119,12 @@ public class ServiceMacroHolder implements Serializable { if (this.allottedResourceCustomizations != null) { this.allottedResourceCustomizations.add(arc); } else { - this.allottedResourceCustomizations = new ArrayList(); + this.allottedResourceCustomizations = new ArrayList<>(); this.allottedResourceCustomizations.add(arc); } } + @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("ServicePlus: "); -- cgit 1.2.3-korg