This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new aab2fc1131f8 [CAMEL-22555] more fixes for non-varargs call of varargs 
method with inexact argument type for last parameter
aab2fc1131f8 is described below

commit aab2fc1131f81ab0068ebc05322bfda36c15b65a
Author: JinyuChen97 <[email protected]>
AuthorDate: Thu Mar 19 10:32:05 2026 +0000

    [CAMEL-22555] more fixes for non-varargs call of varargs method with 
inexact argument type for last parameter
    
    https://issues.apache.org/jira/browse/CAMEL-22555
---
 .../org/apache/camel/component/netty/EnrichWithoutRestResponseTest.java | 2 +-
 .../camel/component/netty/NettyInOutWithForcedNoResponseTest.java       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-netty/src/test/java/org/apache/camel/component/netty/EnrichWithoutRestResponseTest.java
 
b/components/camel-netty/src/test/java/org/apache/camel/component/netty/EnrichWithoutRestResponseTest.java
index 63426366a84f..9997eb2d27b2 100644
--- 
a/components/camel-netty/src/test/java/org/apache/camel/component/netty/EnrichWithoutRestResponseTest.java
+++ 
b/components/camel-netty/src/test/java/org/apache/camel/component/netty/EnrichWithoutRestResponseTest.java
@@ -40,7 +40,7 @@ class EnrichWithoutRestResponseTest extends BaseNettyTest {
                 // mock server - accepts connection and immediately 
disconnects without any response
                 from("netty:tcp://0.0.0.0:{{port}}?disconnect=true")
                         .log("Got request ${body}")
-                        .setBody(constant(null));
+                        .setBody(constant((Object) null));
 
                 // test routes
                 final String nettyClientUri
diff --git 
a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyInOutWithForcedNoResponseTest.java
 
b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyInOutWithForcedNoResponseTest.java
index dc70167c9caa..c2e73828c47f 100644
--- 
a/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyInOutWithForcedNoResponseTest.java
+++ 
b/components/camel-netty/src/test/java/org/apache/camel/component/netty/NettyInOutWithForcedNoResponseTest.java
@@ -47,7 +47,7 @@ public class NettyInOutWithForcedNoResponseTest extends 
BaseNettyTest {
                 from("netty:tcp://localhost:{{port}}")
                         .choice()
                         
.when(body().isEqualTo("Copenhagen")).transform(constant("Hello Claus"))
-                        .otherwise().transform(constant(null));
+                        .otherwise().transform(constant((Object) null));
             }
         };
     }

Reply via email to