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 2024/04/04 10:32:17 UTC

(commons-io) branch master updated: Add @SuppressWarnings

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


The following commit(s) were added to refs/heads/master by this push:
     new ccec71879 Add @SuppressWarnings
ccec71879 is described below

commit ccec7187986e3d57f88609bd51fce4f1a46cd007
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Apr 4 06:32:12 2024 -0400

    Add @SuppressWarnings
---
 src/main/java/org/apache/commons/io/file/PathUtils.java | 1 +
 1 file changed, 1 insertion(+)

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 f7b118c5c..c8ba8a7ba 100644
--- a/src/main/java/org/apache/commons/io/file/PathUtils.java
+++ b/src/main/java/org/apache/commons/io/file/PathUtils.java
@@ -1841,6 +1841,7 @@ public final class PathUtils {
      * @throws IOException if an I/O error is thrown when accessing the starting file.
      * @since 2.9.0
      */
+    @SuppressWarnings("resource") // Caller closes
     public static Stream<Path> walk(final Path start, final PathFilter pathFilter, final int maxDepth, final boolean readAttributes,
             final FileVisitOption... options) throws IOException {
         return Files.walk(start, maxDepth, options)