Skip to content

Commit 25f38a7

Browse files
committed
GROOVY-11691: Missing ClosureParams for NioExtensions#eachFile(Path, Closure)
1 parent 213c3ab commit 25f38a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

subprojects/groovy-nio/src/main/java/org/apache/groovy/nio/extensions/NioExtensions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ public static void eachFile(final Path self, final FileType fileType, @ClosurePa
955955
* @see #eachFile(Path, groovy.io.FileType, groovy.lang.Closure)
956956
* @since 2.3.0
957957
*/
958-
public static void eachFile(final Path self, final Closure closure) throws IOException {
958+
public static void eachFile(final Path self, @ClosureParams(value = SimpleType.class, options = "java.nio.file.Path") final Closure closure) throws IOException {
959959
eachFile(self, FileType.ANY, closure);
960960
}
961961

0 commit comments

Comments
 (0)