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 c7d957d7eaab0422511aa17d92b44c6c3fd05134
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Jun 2 13:36:03 2023 -0400

    Add PathUtils.EMPTY_FILE_ATTRIBUTE_ARRAY
---
 src/changes/changes.xml                                 | 3 +++
 src/main/java/org/apache/commons/io/file/PathUtils.java | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index eff21635..645c5cd8 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -89,6 +89,9 @@ The <action> type attribute can be add,update,fix,remove.
       <action dev="ggregory" type="add" due-to="Gary Gregory">
         Add AbstractOrigin.size().
       </action>
+      <action dev="ggregory" type="add" due-to="Gary Gregory">
+        PathUtils.EMPTY_FILE_ATTRIBUTE_ARRAY.
+      </action>
       <!-- UPDATE -->
       <action dev="ggregory" type="update" due-to="Gary Gregory, Dependabot">
         Bump commons-parent from 57 to 58.
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 9d7984de..1c6bd0d6 100644
--- a/src/main/java/org/apache/commons/io/file/PathUtils.java
+++ b/src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -166,6 +166,13 @@ public final class PathUtils {
      */
     public static final DeleteOption[] EMPTY_DELETE_OPTION_ARRAY = {};
 
+    /**
+     * Empty {@link FileAttribute} array.
+     *
+     * @since 2.13.0
+     */
+    public static final FileAttribute<?>[] EMPTY_FILE_ATTRIBUTE_ARRAY = {};
+
     /**
      * Empty {@link FileVisitOption} array.
      */

Reply via email to