You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/01/18 16:15:14 UTC

[camel] branch master updated: Added todo

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new ea42497  Added todo
ea42497 is described below

commit ea424979a55870c2b0fc9495898420fb5273c17e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Jan 18 17:14:41 2020 +0100

    Added todo
---
 core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java b/core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java
index 5bed373..a0c946f 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java
@@ -253,6 +253,8 @@ public final class StringHelper {
      * @throws IllegalArgumentException if the input arguments is invalid
      */
     public static String replaceAll(String input, String from, String to) {
+        // TODO: Use String.replace instead of this method when using JDK11+ as its much faster there
+
         if (ObjectHelper.isEmpty(input)) {
             return input;
         }