Simplify internals of FileUtils#iterateFiles(File, String[], boolean)
@@ -2002,7 +2002,7 @@ public static boolean isSymlink(final File file) {
* @since 1.2
*/
public static Iterator<File> iterateFiles(final File directory, final String[] extensions, final boolean recursive) {
- return Uncheck.apply(d -> StreamIterator.iterator(streamFiles(d, recursive, extensions)), directory);
+ return Uncheck.apply(d -> streamFiles(d, recursive, extensions).iterator(), directory);
}
/**
