uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bd2019us (JIRA)" <...@uima.apache.org>
Subject [jira] [Created] (UIMA-6023) change String.replaceAll() to replace() if the replaced one is plain string.
Date Sun, 14 Apr 2019 01:14:00 GMT
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)

Mime
View raw message