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 809e1e9d6 Fix requireNonNull() message
809e1e9d6 is described below

commit 809e1e9d6c04d9b0b9d89b216eb798fd015da0e8
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jul 1 10:57:14 2025 -0400

    Fix requireNonNull() message
---
 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 314b24f57..ffd59f92a 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -2547,7 +2547,7 @@ public static void moveFile(final File srcFile, final 
File destFile) throws IOEx
      * @since 2.9.0
      */
     public static void moveFile(final File srcFile, final File destFile, final 
CopyOption... copyOptions) throws IOException {
-        Objects.requireNonNull(destFile, "destination");
+        Objects.requireNonNull(destFile, "destFile");
         checkFileExists(srcFile, "srcFile");
         requireAbsent(destFile, "destFile");
         final boolean rename = srcFile.renameTo(destFile);

Reply via email to