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);
     }
 

Reply via email to