uima-dev mailing list archives

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

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

bd2019us updated UIMA-6023:
---------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: 1.patch
>
>
> 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