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 fea0ee82d6a143272a570d094ef08af67144005f
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Oct 19 08:26:17 2023 -0400

    Camel-case parameter and internal names
    
    Spelling
---
 src/main/java/org/apache/commons/io/FileUtils.java               | 4 ++--
 src/main/java/org/apache/commons/io/FilenameUtils.java           | 2 +-
 src/main/java/org/apache/commons/io/filefilter/package-info.java | 2 +-
 src/main/java/org/apache/commons/io/package-info.java            | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/FileUtils.java 
b/src/main/java/org/apache/commons/io/FileUtils.java
index e61b1c71..72114323 100644
--- a/src/main/java/org/apache/commons/io/FileUtils.java
+++ b/src/main/java/org/apache/commons/io/FileUtils.java
@@ -3000,8 +3000,8 @@ public class FileUtils {
         if (url == null || !"file".equalsIgnoreCase(url.getProtocol())) {
             return null;
         }
-        final String filename = url.getFile().replace('/', File.separatorChar);
-        return new File(decodeUrl(filename));
+        final String fileName = url.getFile().replace('/', File.separatorChar);
+        return new File(decodeUrl(fileName));
     }
 
     /**
diff --git a/src/main/java/org/apache/commons/io/FilenameUtils.java 
b/src/main/java/org/apache/commons/io/FilenameUtils.java
index a17006a8..049c3a71 100644
--- a/src/main/java/org/apache/commons/io/FilenameUtils.java
+++ b/src/main/java/org/apache/commons/io/FilenameUtils.java
@@ -846,7 +846,7 @@ public class FilenameUtils {
      * ~user               --&gt; 6           --&gt; named user (slash added)
      * //server/a/b/c.txt  --&gt; 9
      * ///a/b/c.txt        --&gt; -1          --&gt; error
-     * C:                  --&gt; 0           --&gt; valid filename as only 
null character and / are reserved characters
+     * C:                  --&gt; 0           --&gt; valid file name as only 
null character and / are reserved characters
      * </pre>
      * <p>
      * The output will be the same irrespective of the machine that the code 
is running on.
diff --git a/src/main/java/org/apache/commons/io/filefilter/package-info.java 
b/src/main/java/org/apache/commons/io/filefilter/package-info.java
index a374fb0d..3bf71238 100644
--- a/src/main/java/org/apache/commons/io/filefilter/package-info.java
+++ b/src/main/java/org/apache/commons/io/filefilter/package-info.java
@@ -40,7 +40,7 @@
  * </tr>
  * <tr>
  * <td><a href="NameFileFilter.html">NameFileFilter</a></td>
- * <td>Filter based on a filename</td>
+ * <td>Filter based on a file name</td>
  * </tr>
  * <tr>
  * <td><a href="WildcardFileFilter.html">WildcardFileFilter</a></td>
diff --git a/src/main/java/org/apache/commons/io/package-info.java 
b/src/main/java/org/apache/commons/io/package-info.java
index 29464fe9..6633c106 100644
--- a/src/main/java/org/apache/commons/io/package-info.java
+++ b/src/main/java/org/apache/commons/io/package-info.java
@@ -24,7 +24,7 @@
  * <b>FileUtils</b> provides operations based around the JDK File class. These 
include reading, writing, copying, comparing and deleting.
  * </p>
  * <p>
- * <b>FilenameUtils</b> provides utilities based on filenames. This utility 
class manipulates filenames without using File objects. It aims to simplify the
+ * <b>FilenameUtils</b> provides utilities based on filenames. This utility 
class manipulates file names without using File objects. It aims to simplify the
  * transition between Windows and Unix. Before using this class however, you 
should consider whether you should be using File objects.
  * </p>
  * <p>

Reply via email to