Repository: groovy Updated Branches: refs/heads/master b41657822 -> 36e0e1644
Trivial refactoring Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/44034867 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/44034867 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/44034867 Branch: refs/heads/master Commit: 44034867dbc3364a327410a9d562afe9d53cc8c3 Parents: b416578 Author: sunlan <[email protected]> Authored: Mon Dec 4 17:10:13 2017 +0800 Committer: sunlan <[email protected]> Committed: Mon Dec 4 17:10:13 2017 +0800 ---------------------------------------------------------------------- src/main/org/codehaus/groovy/runtime/InvokerHelper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/44034867/src/main/org/codehaus/groovy/runtime/InvokerHelper.java ---------------------------------------------------------------------- diff --git a/src/main/org/codehaus/groovy/runtime/InvokerHelper.java b/src/main/org/codehaus/groovy/runtime/InvokerHelper.java index 0e3b380..890abf2 100644 --- a/src/main/org/codehaus/groovy/runtime/InvokerHelper.java +++ b/src/main/org/codehaus/groovy/runtime/InvokerHelper.java @@ -398,8 +398,9 @@ public class InvokerHelper { while (i < values.length - 1) { if ((values[i] instanceof SpreadMap) && (values[i + 1] instanceof Map)) { Map smap = (Map) values[i + 1]; - for (Object key : smap.keySet()) { - answer.put(key, smap.get(key)); + for (Object e : smap.entrySet()) { + Map.Entry entry = (Map.Entry) e; + answer.put(entry.getKey(), entry.getValue()); } i += 2; } else {
