diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2018-02-26 07:07:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-02-26 07:07:32 +0000 |
commit | 0e8dbede217edecaab527d6a84d010a685014b56 (patch) | |
tree | 8294869d36172c3c2e626a88061dbce16d97acce /bpmn/MSOCommonBPMN | |
parent | 77d45601074f4026e45d6b07f7e49498a89c711c (diff) | |
parent | bb9cc6b851572a3b756f65738034e546bd33e17d (diff) |
Merge "Swap while loops with foreach where applicable"
Diffstat (limited to 'bpmn/MSOCommonBPMN')
-rw-r--r-- | bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/client/dmaap/DmaapPropertiesLoader.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/client/dmaap/DmaapPropertiesLoader.java b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/client/dmaap/DmaapPropertiesLoader.java index a21dbe8477..1bdecbf2a7 100644 --- a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/client/dmaap/DmaapPropertiesLoader.java +++ b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/client/dmaap/DmaapPropertiesLoader.java @@ -39,9 +39,8 @@ public class DmaapPropertiesLoader { } public DmaapProperties getImpl() { - Iterator<DmaapProperties> propertyImpls = services.iterator(); - while (propertyImpls.hasNext()) { - return propertyImpls.next(); + for (DmaapProperties service : services) { + return service; } return null; |