You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/06/14 21:01:58 UTC
[commons-io] branch master updated (7f351abd -> c59effc3)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
from 7f351abd [IO-762] FileSystem.WINDOWS.isReservedFileName doesn't check for file extension
new a6593edc Sort members
new c59effc3 [IO-762] FileSystem.WINDOWS.isReservedFileName doesn't check for file extension
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/main/java/org/apache/commons/io/FileSystem.java | 2 +-
src/main/java/org/apache/commons/io/file/PathUtils.java | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
[commons-io] 02/02: [IO-762] FileSystem.WINDOWS.isReservedFileName doesn't check for file extension
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit c59effc336d3167af55210e6098a213b361af4b6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jun 14 17:01:52 2022 -0400
[IO-762] FileSystem.WINDOWS.isReservedFileName doesn't check for file
extension
---
src/main/java/org/apache/commons/io/FileSystem.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/io/FileSystem.java b/src/main/java/org/apache/commons/io/FileSystem.java
index 1a96bc9d..95f8bbe1 100644
--- a/src/main/java/org/apache/commons/io/FileSystem.java
+++ b/src/main/java/org/apache/commons/io/FileSystem.java
@@ -355,7 +355,7 @@ public enum FileSystem {
if (isReservedFileName(candidate)) {
return false;
}
- return candidate.chars().anyMatch(i -> isIllegalFileNameChar((char) i));
+ return candidate.chars().noneMatch(i -> isIllegalFileNameChar((char) i));
}
/**
[commons-io] 01/02: Sort members
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit a6593edc56271073c820ac7628fbe8c03336d777
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jun 14 14:45:14 2022 -0400
Sort members
---
src/main/java/org/apache/commons/io/file/PathUtils.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/file/PathUtils.java b/src/main/java/org/apache/commons/io/file/PathUtils.java
index ef45a8c5..2c56895a 100644
--- a/src/main/java/org/apache/commons/io/file/PathUtils.java
+++ b/src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -199,13 +199,6 @@ public final class PathUtils {
*/
public static final Path[] EMPTY_PATH_ARRAY = {};
- /**
- * Does allow to instantiate.
- */
- private PathUtils() {
- // do not instantiate.
- }
-
/**
* Accumulates file tree information in a {@link AccumulatorPathVisitor}.
*
@@ -1704,4 +1697,11 @@ public final class PathUtils {
return path;
}
+ /**
+ * Does allow to instantiate.
+ */
+ private PathUtils() {
+ // do not instantiate.
+ }
+
}