Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-375

FilenameUtils.splitOnTokens(String text) check for '**' could be simplified

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.5
    • Utilities
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: