Whitespace, use final.
MODIFY
src/main/java/org/apache/commons/io/file/PathUtils.java
src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -684,7 +684,7 @@ public static boolean isNewer(final Path file, final long timeMillis, final Link
* @return a new instance.
* @throws IOException if an I/O error occurs.
*/
- public static DirectoryStream<Path> newDirectoryStream(final Path dir, PathFilter pathFilter) throws IOException {
+ public static DirectoryStream<Path> newDirectoryStream(final Path dir, final PathFilter pathFilter) throws IOException {
return Files.newDirectoryStream(dir, new DirectoryStreamFilter(pathFilter));
}
@@ -714,7 +714,7 @@ private static boolean overrideReadOnly(final DeleteOption[] options) {
* @throws IOException if an I/O error occurs
* @since 2.9.0
*/
- public static BasicFileAttributes readBasicFileAttributes(Path path) throws IOException {
+ public static BasicFileAttributes readBasicFileAttributes(final Path path) throws IOException {
return Files.readAttributes(path, BasicFileAttributes.class);
}
@@ -727,10 +727,10 @@ public static BasicFileAttributes readBasicFileAttributes(Path path) throws IOEx
* @throws IllegalStateException if an I/O error occurs
* @since 2.9.0
*/
- public static BasicFileAttributes readBasicFileAttributesQuietly(Path path) {
+ public static BasicFileAttributes readBasicFileAttributesQuietly(final Path path) {
try {
return readBasicFileAttributes(path);
- } catch (IOException e) {
+ } catch (final IOException e) {
throw new IllegalStateException(e);
}
}

Whitespace, use final.