Allon Mureinik has uploaded a new change for review. Change subject: core: VmPayload: efficient map iteration ......................................................................
core: VmPayload: efficient map iteration Replaced a keySet() iteration with a more efficient entrySet() iteration in the VmPayload class. Change-Id: Idb7d010c8744a161bf49d03fe9fc1b6c1c0fc32f Signed-off-by: Allon Mureinik <[email protected]> --- M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/44/11644/1 diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java index 381bf48..957e4f2 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmPayload.java @@ -37,9 +37,9 @@ Map<String, Object> payload = (Map<String, Object>)specParams.get(SpecParamsPayload); Map<String, Object> files = (Map<String, Object>)payload.get(SpecParamsFileType); // for now we use only one file and one content... - for (String key: files.keySet()) { - this.fileName = key; - this.content = files.get(key).toString(); + for (Map.Entry<String, Object> entry : files.entrySet()) { + this.fileName = entry.getKey(); + this.content = entry.getValue().toString(); } } -- To view, visit http://gerrit.ovirt.org/11644 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idb7d010c8744a161bf49d03fe9fc1b6c1c0fc32f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
