Skip to content

Commit c4a7e64

Browse files
committed
<action issue="IO-436" dev="ggregory" type="fix" due-to="christoph.schneegans">
Improper JavaDoc comment for FilenameUtils.indexOfExtension. </action> git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1586305 13f79535-47bb-0310-9956-ffa450edef68
1 parent e337e7b commit c4a7e64

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ The <action> type attribute can be add,update,fix,remove.
185185
<action issue="IO-345" dev="ggregory" type="add" due-to="mkresse">
186186
Supply a hook method allowing Tailer actively determining stop condition.
187187
</action>
188+
<action issue="IO-436" dev="ggregory" type="fix" due-to="christoph.schneegans">
189+
Improper JavaDoc comment for FilenameUtils.indexOfExtension.
190+
</action>
188191
</release>
189192
<!-- The release date is the date RC is cut -->
190193
<release version="2.4" date="2012-06-12" description="New features and bug fixes.">

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -704,15 +704,16 @@ public static int indexOfLastSeparator(final String filename) {
704704
/**
705705
* Returns the index of the last extension separator character, which is a dot.
706706
* <p>
707-
* This method also checks that there is no directory separator after the last dot.
708-
* To do this it uses {@link #indexOfLastSeparator(String)} which will
709-
* handle a file in either Unix or Windows format.
707+
* This method also checks that there is no directory separator after the last dot. To do this it uses
708+
* {@link #indexOfLastSeparator(String)} which will handle a file in either Unix or Windows format.
709+
* </p>
710710
* <p>
711711
* The output will be the same irrespective of the machine that the code is running on.
712-
*
713-
* @param filename the filename to find the last path separator in, null returns -1
714-
* @return the index of the last separator character, or -1 if there
715-
* is no such character
712+
* </p>
713+
*
714+
* @param filename
715+
* the filename to find the last extension separator in, null returns -1
716+
* @return the index of the last extension separator character, or -1 if there is no such character
716717
*/
717718
public static int indexOfExtension(final String filename) {
718719
if (filename == null) {

0 commit comments

Comments
 (0)