You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2013/04/08 01:11:15 UTC

[jira] [Resolved] (IO-375) FilenameUtils.splitOnTokens(String text) check for '**' could be simplified

     [ https://issues.apache.org/jira/browse/IO-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved IO-375.
---------------------

       Resolution: Fixed
    Fix Version/s: 2.5

URL: http://svn.apache.org/r1465505
Log:
IO-375 FilenameUtils.splitOnTokens(String text) check for '**' could be simplified

Modified:
    commons/proper/io/trunk/src/changes/changes.xml
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/FilenameUtils.java
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/FilenameUtilsWildcardTestCase.java
                
> FilenameUtils.splitOnTokens(String text) check for '**' could be simplified
> ---------------------------------------------------------------------------
>
>                 Key: IO-375
>                 URL: https://issues.apache.org/jira/browse/IO-375
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.4
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 2.5
>
>
> The method FilenameUtils.splitOnTokens(String text) has a complicated check to decide when to collapse a run of '*'. Could be considerably simplified by caching the previous character.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira