You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "bd2019us (JIRA)" <de...@uima.apache.org> on 2019/04/14 01:14:00 UTC

[jira] [Created] (UIMA-6023) change String.replaceAll() to replace() if the replaced one is plain string.

bd2019us created UIMA-6023:
------------------------------

             Summary: change String.replaceAll() to replace() if the replaced one is plain string.
                 Key: UIMA-6023
                 URL: https://issues.apache.org/jira/browse/UIMA-6023
             Project: UIMA
          Issue Type: Bug
            Reporter: bd2019us


Location: uima-ducc-user/src/main/java/org/apache/uima/ducc/user/common/UimaUtils.java

The replaced string ("/") is a plain string, which need not to be compiled a head of time. Therefore, use the replaceAll() API may damage the performance since replaceAll() will compile the given string. The replace() method is recommended to improve performance.



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