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 2025/06/04 13:35:10 UTC

(groovy) branch jline3 created (now 226d2ddfad)

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

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


      at 226d2ddfad GROOVY-11691: Missing ClosureParams for NioExtensions#eachFile(Path, Closure)

This branch includes the following new commits:

     new 226d2ddfad GROOVY-11691: Missing ClosureParams for NioExtensions#eachFile(Path, Closure)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(groovy) 01/01: GROOVY-11691: Missing ClosureParams for NioExtensions#eachFile(Path, Closure)

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 226d2ddfad501f7efdb78ea3c346024a2c667f5d
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Jun 4 23:34:27 2025 +1000

    GROOVY-11691: Missing ClosureParams for NioExtensions#eachFile(Path, Closure)
---
 .../src/main/java/org/apache/groovy/nio/extensions/NioExtensions.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/extensions/NioExtensions.java b/subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/extensions/NioExtensions.java
index 7ad79632ff..90f84b5927 100644
--- a/subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/extensions/NioExtensions.java
+++ b/subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/extensions/NioExtensions.java
@@ -955,7 +955,7 @@ public class NioExtensions extends DefaultGroovyMethodsSupport {
      * @see #eachFile(Path, groovy.io.FileType, groovy.lang.Closure)
      * @since 2.3.0
      */
-    public static void eachFile(final Path self, final Closure closure) throws IOException {
+    public static void eachFile(final Path self, @ClosureParams(value = SimpleType.class, options = "java.nio.file.Path") final Closure closure) throws IOException {
         eachFile(self, FileType.ANY, closure);
     }