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/06/30 10:39:02 UTC

[camel] 06/13: (chores) camel-netty-http: reduce verbosity of generics code

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 47d502d4cfbefabf6adefc5d30982b1414003f0f
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 30 11:10:24 2023 +0200

    (chores) camel-netty-http: reduce verbosity of generics code
---
 .../java/org/apache/camel/component/netty/http/NettyHttpComponent.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpComponent.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpComponent.java
index 30aa74db049..ae34f278295 100644
--- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpComponent.java
+++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpComponent.java
@@ -488,7 +488,7 @@ public class NettyHttpComponent extends NettyComponent
             url = url + "?" + query;
         }
 
-        parameters = parameters != null ? new HashMap<>(parameters) : new HashMap<String, Object>();
+        parameters = parameters != null ? new HashMap<>(parameters) : new HashMap<>();
 
         // there are cases where we might end up here without component being created beforehand
         // we need to abide by the component properties specified in the parameters when creating