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 bb643d235ad17025c88a349991d33f757a826c21
Author: Otavio R. Piske <[email protected]>
AuthorDate: Fri May 24 20:16:03 2024 +0200

    (chores) camel-netty-http: fix overly complex conversion to String
    
    Signed-off-by: Otavio R. Piske <[email protected]>
---
 .../test/java/org/apache/camel/component/netty/http/BaseNettyTest.java | 2 +-
 .../camel/component/netty/http/NettyHttpProducerConcurrentTest.java    | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/BaseNettyTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/BaseNettyTest.java
index 92a0be0e404..27400abd48d 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/BaseNettyTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/BaseNettyTest.java
@@ -77,7 +77,7 @@ public class BaseNettyTest extends CamelTestSupport {
     public Properties loadProp() {
 
         Properties prop = new Properties();
-        prop.setProperty("port", "" + getPort());
+        prop.setProperty("port", Integer.toString(getPort()));
 
         return prop;
     }
diff --git 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerConcurrentTest.java
 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerConcurrentTest.java
index 62428afb43a..a35b3784ead 100644
--- 
a/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerConcurrentTest.java
+++ 
b/components/camel-netty-http/src/test/java/org/apache/camel/component/netty/http/NettyHttpProducerConcurrentTest.java
@@ -58,7 +58,8 @@ public class NettyHttpProducerConcurrentTest extends 
BaseNettyTest {
             final int index = i;
             Future<String> out = executor.submit(new Callable<String>() {
                 public String call() {
-                    return 
template.requestBody("netty-http:http://localhost:{{port}}/echo";, "" + index, 
String.class);
+                    return 
template.requestBody("netty-http:http://localhost:{{port}}/echo";, 
Integer.toString(index),
+                            String.class);
                 }
             });
             responses.put(index, out);

Reply via email to