Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-156

Fix the RegexTokenizer to use a static Pattern

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Implemented
    • 1.6
    • 1.7
    • None

    Description

      Use of a static pattern avoids the compile step for each invocation. The matcher created from the pattern contains all state so the pattern can be used across threads.

      Also:

      • Remove the use of CharSequence.toString() to pass to the
        matcher(CharSequence) method. There is no need to create a String.
      • Fix the javadoc header @code tag.

      Attachments

        Issue Links

          Activity

            People

              aherbert Alex Herbert
              aherbert Alex Herbert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m