You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex D Herbert (JIRA)" <ji...@apache.org> on 2019/03/08 00:14:00 UTC

[jira] [Closed] (TEXT-156) Fix the RegexTokenizer to use a static Pattern

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

Alex D Herbert closed TEXT-156.
-------------------------------

> Fix the RegexTokenizer to use a static Pattern
> ----------------------------------------------
>
>                 Key: TEXT-156
>                 URL: https://issues.apache.org/jira/browse/TEXT-156
>             Project: Commons Text
>          Issue Type: Improvement
>    Affects Versions: 1.6
>            Reporter: Alex D Herbert
>            Assignee: Alex D Herbert
>            Priority: Trivial
>             Fix For: 1.7
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)