Skip to content

Commit c7d957d

Browse files
committed
Add PathUtils.EMPTY_FILE_ATTRIBUTE_ARRAY
1 parent 3c352e2 commit c7d957d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ The <action> type attribute can be add,update,fix,remove.
8989
<action dev="ggregory" type="add" due-to="Gary Gregory">
9090
Add AbstractOrigin.size().
9191
</action>
92+
<action dev="ggregory" type="add" due-to="Gary Gregory">
93+
PathUtils.EMPTY_FILE_ATTRIBUTE_ARRAY.
94+
</action>
9295
<!-- UPDATE -->
9396
<action dev="ggregory" type="update" due-to="Gary Gregory, Dependabot">
9497
Bump commons-parent from 57 to 58.

src/main/java/org/apache/commons/io/file/PathUtils.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@ private RelativeSortedPaths(final Path dir1, final Path dir2, final int maxDepth
166166
*/
167167
public static final DeleteOption[] EMPTY_DELETE_OPTION_ARRAY = {};
168168

169+
/**
170+
* Empty {@link FileAttribute} array.
171+
*
172+
* @since 2.13.0
173+
*/
174+
public static final FileAttribute<?>[] EMPTY_FILE_ATTRIBUTE_ARRAY = {};
175+
169176
/**
170177
* Empty {@link FileVisitOption} array.
171178
*/

0 commit comments

Comments
 (0)