diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2018-02-22 06:25:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-02-22 06:25:21 +0000 |
commit | 3dabdbcfe266364fb0e33ca8b44b5cdad057ae6f (patch) | |
tree | 2f9da0c53afdc11914f0e2f45ab8b213175f9f26 /asdc-controller | |
parent | 5ed10df2f1e3d39562293411ba09765b453228a6 (diff) | |
parent | b5af6ca053e6df9d4c79eda7e56afcf51ab34cc2 (diff) |
Merge "Make use of addAll instead of loop"
Diffstat (limited to 'asdc-controller')
-rw-r--r-- | asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/VfModuleStructure.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/VfModuleStructure.java b/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/VfModuleStructure.java index f6ac480c93..be86574137 100644 --- a/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/VfModuleStructure.java +++ b/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/VfModuleStructure.java @@ -79,13 +79,9 @@ public final class VfModuleStructure { artifactsList.addAll(artifactsMap.get(ASDCConfiguration.HEAT_ENV)); artifactsList.addAll(artifactsMap.get(ASDCConfiguration.HEAT_VOL)); - for (VfModuleArtifact artifact:(artifactsMap.get(ASDCConfiguration.HEAT_NESTED))) { - artifactsList.add(artifact); - } + artifactsList.addAll((artifactsMap.get(ASDCConfiguration.HEAT_NESTED))); - for (VfModuleArtifact artifact:(artifactsMap.get(ASDCConfiguration.HEAT_ARTIFACT))) { - artifactsList.add(artifact); - } + artifactsList.addAll((artifactsMap.get(ASDCConfiguration.HEAT_ARTIFACT))); artifactsList.addAll(artifactsMap.get(ASDCConfiguration.HEAT_VOL)); |