[TEXT-156] Fix the RegexTokenizer to use a static Pattern (original) (raw)
Log inSkip to main contentSkip to sidebar
XMLWordPrintableJSON
Details
- Type:
Improvement
- Status: Closed
- Priority:
Trivial
- Resolution: Implemented
- Affects Version/s: 1.6
- Fix Version/s: 1.7
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
Votes:
0 Vote for this issue
Watchers:
1 Start watching this issue
Dates
Created:
07/Mar/19 23:08
Updated:
08/Mar/19 00:13
Resolved:
08/Mar/19 00:13
