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/06/06 22:38:22 UTC

(commons-io) branch master updated: Remove exception not thrown from private method signature

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 6bace53ea Remove exception not thrown from private method signature
6bace53ea is described below

commit 6bace53eac91519aed5fcf38728aea1c3b41778e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 6 18:38:16 2024 -0400

    Remove exception not thrown from private method signature
    
    FileUtils.requireDirectoryIfExists(File, String)
---
 src/main/java/org/apache/commons/io/FileUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/io/FileUtils.java b/src/main/java/org/apache/commons/io/FileUtils.java
index c8eef6067..779f07812 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -2812,7 +2812,7 @@ public class FileUtils {
      * @throws NullPointerException if the given {@link File} is {@code null}.
      * @throws IllegalArgumentException if the given {@link File} exists but is not a directory.
      */
-    private static void requireDirectoryIfExists(final File directory, final String name) throws FileNotFoundException {
+    private static void requireDirectoryIfExists(final File directory, final String name) {
         Objects.requireNonNull(directory, name);
         if (directory.exists() && !directory.isDirectory()) {
             throw new IllegalArgumentException("Parameter '" + name + "' is not a directory: '" + directory + "'");