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 2024/05/25 12:12:57 UTC
(camel) 12/25: (chores) camel-ironmq: fix overly complex conversion to String
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 8af30f58e57524bc6af770df3e61ecc0a3c9d110
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Fri May 24 20:03:16 2024 +0200
(chores) camel-ironmq: fix overly complex conversion to String
Signed-off-by: Otavio R. Piske <an...@gmail.com>
---
.../ironmq/integrationtest/ConcurrentConsumerLoadManualTest.java | 2 +-
.../component/ironmq/integrationtest/Queue2QueueExampleManualTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/integrationtest/ConcurrentConsumerLoadManualTest.java b/components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/integrationtest/ConcurrentConsumerLoadManualTest.java
index f558e35c070..75a62a73104 100644
--- a/components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/integrationtest/ConcurrentConsumerLoadManualTest.java
+++ b/components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/integrationtest/ConcurrentConsumerLoadManualTest.java
@@ -59,7 +59,7 @@ public class ConcurrentConsumerLoadManualTest extends CamelTestSupport {
int noOfBlocks = 0;
ArrayList<String> list = new ArrayList<>();
for (int i = 1; i <= NO_OF_MESSAGES; i++) {
- String payloadToSend = PAYLOAD.replace("#", "" + i);
+ String payloadToSend = PAYLOAD.replace("#", Integer.toString(i));
list.add(payloadToSend);
if (i % 100 == 0) {
noOfBlocks++;
diff --git a/components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/integrationtest/Queue2QueueExampleManualTest.java b/components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/integrationtest/Queue2QueueExampleManualTest.java
index a183c2a05cd..db2b6121a82 100644
--- a/components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/integrationtest/Queue2QueueExampleManualTest.java
+++ b/components/camel-ironmq/src/test/java/org/apache/camel/component/ironmq/integrationtest/Queue2QueueExampleManualTest.java
@@ -50,7 +50,7 @@ public class Queue2QueueExampleManualTest extends CamelTestSupport {
public void testSendMessagesBetweenQueues() throws Exception {
getMockEndpoint("mock:result").expectedMessageCount(100);
for (int i = 1; i <= 100; i++) {
- String payloadToSend = PAYLOAD.replace("#", "" + i);
+ String payloadToSend = PAYLOAD.replace("#", Integer.toString(i));
template.sendBody("direct:start", payloadToSend);
}
MockEndpoint.assertIsSatisfied(context, 2, TimeUnit.MINUTES);