aboutsummaryrefslogtreecommitdiffstats
path: root/mso-catalog-db/src
diff options
context:
space:
mode:
authorshashikanth <shashikanth.vh@huawei.com>2017-09-26 11:23:09 +0530
committershashikanth <shashikanth.vh@huawei.com>2017-09-26 11:23:09 +0530
commit86648613c7f24878ab1ff92eafce9018b4e9fde5 (patch)
tree4729c6ee3d72cb648187185074dd9013c32f2c6c /mso-catalog-db/src
parent03089c2e6fb0cfb52857ca700e01a53a16dc0ea6 (diff)
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 <shashikanth.vh@huawei.com>
Diffstat (limited to 'mso-catalog-db/src')
-rw-r--r--mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/ServiceMacroHolder.java15
1 files changed, 8 insertions, 7 deletions
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<VnfResource>();
- this.networkResourceCustomizations = new ArrayList<NetworkResourceCustomization>();
- this.allottedResourceCustomizations = new ArrayList<AllottedResourceCustomization>();
- this.vnfResourceCustomizations = new ArrayList<VnfResourceCustomization>();
+ 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<VnfResource>();
+ 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<VnfResourceCustomization>();
+ 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<NetworkResourceCustomization>();
+ 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<AllottedResourceCustomization>();
+ this.allottedResourceCustomizations = new ArrayList<>();
this.allottedResourceCustomizations.add(arc);
}
}
+ @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("ServicePlus: ");