diff options
author | 2018-02-21 16:50:36 -0500 | |
---|---|---|
committer | 2018-02-21 16:50:36 -0500 | |
commit | b5af6ca053e6df9d4c79eda7e56afcf51ab34cc2 (patch) | |
tree | e8e6323f4cfe7da539c505f6216374a8bb14b3ae /mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans | |
parent | 18b29b863206deeba869fcd2738ea8ffce20b962 (diff) |
Make use of addAll instead of loop
Change-Id: Ia3afb3ecfec21e81982c4838bf019cc8e3ef55c1
Issue-ID: SO-437
Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Diffstat (limited to 'mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans')
-rw-r--r-- | mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/VnfResource.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/VnfResource.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/VnfResource.java index 0872f146ad..7495015cb9 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/VnfResource.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/beans/VnfResource.java @@ -226,9 +226,7 @@ public class VnfResource extends MavenLikeVersioning implements Serializable { return null; } ArrayList<VfModule> list = new ArrayList<VfModule>(); - for (VfModule vfm : this.vfModules) { - list.add(vfm); - } + list.addAll(this.vfModules); return list; } |