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 29e6b9cef90e666c535459ef3cdbe14037664f64 Author: Otavio R. Piske <angusyo...@gmail.com> AuthorDate: Fri May 24 20:11:30 2024 +0200 (chores) camel-leveldb: fix overly complex conversion to String Signed-off-by: Otavio R. Piske <angusyo...@gmail.com> --- .../camel/component/leveldb/LevelDBAggregateLoadConcurrentTest.java | 2 +- .../org/apache/camel/component/leveldb/LevelDBAggregateLoadTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBAggregateLoadConcurrentTest.java b/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBAggregateLoadConcurrentTest.java index 02109d97bd3..73dc47cbfa9 100644 --- a/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBAggregateLoadConcurrentTest.java +++ b/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBAggregateLoadConcurrentTest.java @@ -62,7 +62,7 @@ public class LevelDBAggregateLoadConcurrentTest extends LevelDBTestSupport { public Object call() throws Exception { char id = KEYS[key]; LOG.debug("Sending {} with id {}", value, id); - template.sendBodyAndHeader("direct:start", value, "id", "" + id); + template.sendBodyAndHeader("direct:start", value, "id", Character.toString(id)); // simulate a little delay Thread.sleep(3); return null; diff --git a/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBAggregateLoadTest.java b/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBAggregateLoadTest.java index 2a91273c762..b336e76e413 100644 --- a/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBAggregateLoadTest.java +++ b/components/camel-leveldb/src/test/java/org/apache/camel/component/leveldb/LevelDBAggregateLoadTest.java @@ -54,7 +54,7 @@ public class LevelDBAggregateLoadTest extends LevelDBTestSupport { final int value = 1; char id = 'A'; LOG.debug("Sending {} with id {}", value, id); - template.sendBodyAndHeader("seda:start?size=" + SIZE, value, "id", "" + id); + template.sendBodyAndHeader("seda:start?size=" + SIZE, value, "id", Character.toString(id)); } LOG.info("Sending all {} message done. Now waiting for aggregation to complete.", SIZE);