You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/09/26 00:26:33 UTC

[groovy] 14/23: don't use deprecated version of class

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 2e9922303334ecac1b8da67c8e63e00b0d260c91
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Sep 19 16:34:09 2019 +1000

    don't use deprecated version of class
---
 .../groovy/org/apache/groovy/groovysh/util/XmlCommandRegistrar.groovy   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/XmlCommandRegistrar.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/XmlCommandRegistrar.groovy
index f0394e6..e77d66b 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/XmlCommandRegistrar.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/XmlCommandRegistrar.groovy
@@ -74,7 +74,7 @@ class XmlCommandRegistrar {
         }
 
         url.withReader { Reader reader ->
-            groovy.util.Node doc = new groovy.util.XmlParser().parse(reader)
+            groovy.util.Node doc = new groovy.xml.XmlParser().parse(reader)
 
             doc.children().each { groovy.util.Node element ->
                 String classname = element.text()