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 ccda26faf8796742c799d7a0480db76be884af82
Author: Otavio R. Piske <angusyo...@gmail.com>
AuthorDate: Fri May 24 20:08:03 2024 +0200

    (chores) camel-jetty: fix overly complex conversion to String
    
    Signed-off-by: Otavio R. Piske <angusyo...@gmail.com>
---
 .../src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java | 4 ++--
 .../org/apache/camel/component/jetty/HttpProducerConcurrentTest.java  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java
index 8d4cb913eb4..a2057cb6714 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/BaseJettyTest.java
@@ -61,8 +61,8 @@ public abstract class BaseJettyTest extends CamelTestSupport {
     @BindToRegistry("prop")
     public Properties loadProp() {
         Properties prop = new Properties();
-        prop.setProperty("port", "" + getPort());
-        prop.setProperty("port2", "" + getPort2());
+        prop.setProperty("port", Integer.toString(getPort()));
+        prop.setProperty("port2", Integer.toString(getPort2()));
         return prop;
     }
 
diff --git 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerConcurrentTest.java
 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerConcurrentTest.java
index 04837faca61..5c540e8661d 100644
--- 
a/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerConcurrentTest.java
+++ 
b/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpProducerConcurrentTest.java
@@ -59,7 +59,7 @@ public class HttpProducerConcurrentTest extends BaseJettyTest 
{
             final int index = i;
             Future<String> out = executor.submit(new Callable<String>() {
                 public String call() {
-                    return 
template.requestBody("http://localhost:{{port}}/echo";, "" + index, 
String.class);
+                    return 
template.requestBody("http://localhost:{{port}}/echo";, Integer.toString(index), 
String.class);
                 }
             });
             responses.put(index, out);

Reply via email to