Skip to content

Commit ee8a7df

Browse files
author
Niall Pemberton
committed
IO-183 Improve javadoc for FilenameUtils.getExtension() method - reported by Vadim Ponomarev
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@723189 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4a3fd09 commit ee8a7df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ public static String getBaseName(String filename) {
952952
* The output will be the same irrespective of the machine that the code is running on.
953953
*
954954
* @param filename the filename to retrieve the extension of.
955-
* @return the extension of the file or an empty string if none exists.
955+
* @return the extension of the file or an empty string if none exists or <code>null</code>
956+
* if the filename is <code>null</code>.
956957
*/
957958
public static String getExtension(String filename) {
958959
if (filename == null) {

0 commit comments

Comments
 (0)