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
The following commit(s) were added to refs/heads/master by this push:
new 25f38a7855 GROOVY-11691: Missing ClosureParams for
NioExtensions#eachFile(Path, Closure)
25f38a7855 is described below
commit 25f38a785551d64231186962705ce7d5fa3ffcdc
Author: Paul King <[email protected]>
AuthorDate: Wed Jun 4 23:35:55 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);
}