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

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


The following commit(s) were added to refs/heads/main by this push:
     new a8c6243dc2c (chores) core/camel-util: reset the upper flag on 
StringHelper only when necessary
a8c6243dc2c is described below

commit a8c6243dc2cbd9e5797584a925091b86235a0c8b
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Thu Aug 29 10:38:35 2024 +0200

    (chores) core/camel-util: reset the upper flag on StringHelper only when 
necessary
---
 core/camel-util/src/main/java/org/apache/camel/util/StringHelper.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 bd6288914e0..468ec7cba15 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
@@ -584,9 +584,9 @@ public final class StringHelper {
             } else {
                 if (upper) {
                     c = Character.toUpperCase(c);
+                    upper = false;
                 }
                 sb.append(c);
-                upper = false;
             }
         }
         return sb.toString();

Reply via email to