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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment