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 ab8ccbdea4e5fafe179a1e49423c8abf19f2d641
Author: Paul King <[email protected]>
AuthorDate: Wed Jul 23 08:31:28 2025 +1000

    add missing javadoc comment
---
 subprojects/groovy-xml/src/main/java/groovy/xml/XmlSlurper.java | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/subprojects/groovy-xml/src/main/java/groovy/xml/XmlSlurper.java 
b/subprojects/groovy-xml/src/main/java/groovy/xml/XmlSlurper.java
index 86c5e0498b..28e1b1b252 100644
--- a/subprojects/groovy-xml/src/main/java/groovy/xml/XmlSlurper.java
+++ b/subprojects/groovy-xml/src/main/java/groovy/xml/XmlSlurper.java
@@ -265,6 +265,15 @@ public class XmlSlurper extends DefaultHandler {
         return parse(new InputSource(uri));
     }
 
+    /**
+     * Parses the content of the file at the given path as XML turning it into 
a GPathResult object
+     *
+     * @param path the path of the File to parse
+     * @return An object which supports GPath expressions
+     * @throws SAXException Any SAX exception, possibly wrapping another 
exception.
+     * @throws IOException An IO exception from the parser, possibly from a 
byte stream
+     *         or character stream supplied by the application.
+     */
     public GPathResult parse(final Path path) throws IOException, SAXException 
{
        return parse(Files.newInputStream(path));
     }

Reply via email to