aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-09-26 07:55:24 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-26 07:55:24 +0000
commit3d7d698f93c03a5d4d2227c2713d9a7bcc32d7af (patch)
treeda55d75587242bb51d7345b3a3571d1c417e95fa
parent1848ed553261845d77c04f3e290db2a9fe1ad8f8 (diff)
parent86648613c7f24878ab1ff92eafce9018b4e9fde5 (diff)
Merge "Added "@Override" annotation method signature"
-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: ");