You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2018/03/15 01:37:22 UTC

groovy git commit: Trivial refactoring: remove redundant array creation

Repository: groovy
Updated Branches:
  refs/heads/master 594dd7d74 -> c51891079


Trivial refactoring: remove redundant array creation


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/c5189107
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/c5189107
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/c5189107

Branch: refs/heads/master
Commit: c51891079d22b4f05514e7dc7750e2c2a8858aec
Parents: 594dd7d
Author: sunlan <su...@apache.org>
Authored: Thu Mar 15 09:37:16 2018 +0800
Committer: sunlan <su...@apache.org>
Committed: Thu Mar 15 09:37:16 2018 +0800

----------------------------------------------------------------------
 .../groovy/xml/streamingmarkupsupport/BaseMarkupBuilder.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/c5189107/subprojects/groovy-xml/src/main/java/groovy/xml/streamingmarkupsupport/BaseMarkupBuilder.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-xml/src/main/java/groovy/xml/streamingmarkupsupport/BaseMarkupBuilder.java b/subprojects/groovy-xml/src/main/java/groovy/xml/streamingmarkupsupport/BaseMarkupBuilder.java
index f09968f..c5a92dc 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/streamingmarkupsupport/BaseMarkupBuilder.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/streamingmarkupsupport/BaseMarkupBuilder.java
@@ -146,9 +146,9 @@ public class BaseMarkupBuilder extends Builder {
             this.prefix = "";
 
             if (tagMap.containsKey(name)) {
-                return ((Closure) tagMap.get(name)).call(new Object[]{this, this.pendingNamespaces, this.namespaces, this.namespaceSpecificTags, prefix, attrs, body, this.out});
+                return ((Closure) tagMap.get(name)).call(this, this.pendingNamespaces, this.namespaces, this.namespaceSpecificTags, prefix, attrs, body, this.out);
             } else {
-                return defaultTagClosure.call(new Object[]{name, this, this.pendingNamespaces, this.namespaces, this.namespaceSpecificTags, prefix, attrs, body, this.out});
+                return defaultTagClosure.call(name, this, this.pendingNamespaces, this.namespaces, this.namespaceSpecificTags, prefix, attrs, body, this.out);
             }
         }