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:43 UTC
[camel] 10/17: (chores) camel-http: 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 fbed324bf2c92b18db2fc146b904cdaa05f80d77
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Mar 24 14:04:35 2023 +0100
(chores) camel-http: use builtin Java methods for data conversion
---
.../test/java/org/apache/camel/component/http/HttpConcurrentTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-http/src/test/java/org/apache/camel/component/http/HttpConcurrentTest.java b/components/camel-http/src/test/java/org/apache/camel/component/http/HttpConcurrentTest.java
index 5250255b0ae..a90911968a4 100644
--- a/components/camel-http/src/test/java/org/apache/camel/component/http/HttpConcurrentTest.java
+++ b/components/camel-http/src/test/java/org/apache/camel/component/http/HttpConcurrentTest.java
@@ -54,7 +54,7 @@ public class HttpConcurrentTest extends BaseHttpTest {
// ignore
}
response.setCode(HttpStatus.SC_OK);
- response.setEntity(new StringEntity("" + counter.incrementAndGet()));
+ response.setEntity(new StringEntity(Integer.toString(counter.incrementAndGet())));
}).create();
localServer.start();