Skip to content

Commit fea0ee8

Browse files
committed
Camel-case parameter and internal names
Spelling
1 parent 11e722f commit fea0ee8

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3000,8 +3000,8 @@ public static File toFile(final URL url) {
30003000
if (url == null || !"file".equalsIgnoreCase(url.getProtocol())) {
30013001
return null;
30023002
}
3003-
final String filename = url.getFile().replace('/', File.separatorChar);
3004-
return new File(decodeUrl(filename));
3003+
final String fileName = url.getFile().replace('/', File.separatorChar);
3004+
return new File(decodeUrl(fileName));
30053005
}
30063006

30073007
/**

src/main/java/org/apache/commons/io/FilenameUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ public static String getPrefix(final String fileName) {
846846
* ~user --> 6 --> named user (slash added)
847847
* //server/a/b/c.txt --> 9
848848
* ///a/b/c.txt --> -1 --> error
849-
* C: --> 0 --> valid filename as only null character and / are reserved characters
849+
* C: --> 0 --> valid file name as only null character and / are reserved characters
850850
* </pre>
851851
* <p>
852852
* The output will be the same irrespective of the machine that the code is running on.

src/main/java/org/apache/commons/io/filefilter/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* </tr>
4141
* <tr>
4242
* <td><a href="NameFileFilter.html">NameFileFilter</a></td>
43-
* <td>Filter based on a filename</td>
43+
* <td>Filter based on a file name</td>
4444
* </tr>
4545
* <tr>
4646
* <td><a href="WildcardFileFilter.html">WildcardFileFilter</a></td>

src/main/java/org/apache/commons/io/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* <b>FileUtils</b> provides operations based around the JDK File class. These include reading, writing, copying, comparing and deleting.
2525
* </p>
2626
* <p>
27-
* <b>FilenameUtils</b> provides utilities based on filenames. This utility class manipulates filenames without using File objects. It aims to simplify the
27+
* <b>FilenameUtils</b> provides utilities based on filenames. This utility class manipulates file names without using File objects. It aims to simplify the
2828
* transition between Windows and Unix. Before using this class however, you should consider whether you should be using File objects.
2929
* </p>
3030
* <p>

0 commit comments

Comments
 (0)