You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/03/24 14:27:37 UTC
[camel] 04/17: (chores) camel-util: use builtin Java methods for data conversion
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
commit 8842e21814efe96710f2d5008ba88b2d3e998e5d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Mar 24 13:51:02 2023 +0100
(chores) camel-util: use builtin Java methods for data conversion
---
.../src/test/java/org/apache/camel/util/StringHelperTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/camel-util/src/test/java/org/apache/camel/util/StringHelperTest.java b/core/camel-util/src/test/java/org/apache/camel/util/StringHelperTest.java
index 8f90d4688a9..70d6569ecc2 100644
--- a/core/camel-util/src/test/java/org/apache/camel/util/StringHelperTest.java
+++ b/core/camel-util/src/test/java/org/apache/camel/util/StringHelperTest.java
@@ -210,7 +210,7 @@ public class StringHelperTest {
int count = StringHelper.countChar(value, ',') + 1;
it = splitOnCharacterAsIterator(value, ',', count);
for (int i = 0; i < 100; i++) {
- assertEquals("" + i, it.next());
+ assertEquals(Integer.toString(i), it.next());
}
assertFalse(it.hasNext());
}