Author: niallp
Date: Wed Dec 3 18:06:38 2008
New Revision: 723189
URL: http://svn.apache.org/viewvc?rev=723189&view=rev
Log:
IO-183 Improve javadoc for FilenameUtils.getExtension() method - reported by
Vadim Ponomarev
Modified:
commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java
Modified:
commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java?rev=723189&r1=723188&r2=723189&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java
(original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java
Wed Dec 3 18:06:38 2008
@@ -952,7 +952,8 @@
* The output will be the same irrespective of the machine that the code
is running on.
*
* @param filename the filename to retrieve the extension of.
- * @return the extension of the file or an empty string if none exists.
+ * @return the extension of the file or an empty string if none exists or
<code>null</code>
+ * if the filename is <code>null</code>.
*/
public static String getExtension(String filename) {
if (filename == null) {