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 2022/06/16 07:04:53 UTC
[camel] 05/06: (chores) camel-servlet: removed unused method parameters
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 b9adf82f5888395de2d2f16474beedb02c4e1b82
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Jun 15 17:41:33 2022 +0200
(chores) camel-servlet: removed unused method parameters
---
.../java/org/apache/camel/component/servlet/ServletComponent.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/ServletComponent.java b/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/ServletComponent.java
index fe563abfa55..98611d1f91b 100644
--- a/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/ServletComponent.java
+++ b/components/camel-servlet/src/main/java/org/apache/camel/component/servlet/ServletComponent.java
@@ -262,7 +262,7 @@ public class ServletComponent extends HttpCommonComponent implements RestConsume
CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate,
String consumes, String produces, RestConfiguration configuration, Map<String, Object> parameters)
throws Exception {
- return doCreateConsumer(camelContext, processor, verb, basePath, uriTemplate, consumes, produces, configuration,
+ return doCreateConsumer(camelContext, processor, verb, basePath, uriTemplate, configuration,
parameters, false);
}
@@ -272,12 +272,12 @@ public class ServletComponent extends HttpCommonComponent implements RestConsume
RestConfiguration configuration, Map<String, Object> parameters)
throws Exception {
// reuse the createConsumer method we already have. The api need to use GET and match on uri prefix
- return doCreateConsumer(camelContext, processor, "GET", contextPath, null, null, null, configuration, parameters, true);
+ return doCreateConsumer(camelContext, processor, "GET", contextPath, null, configuration, parameters, true);
}
Consumer doCreateConsumer(
CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate,
- String consumes, String produces, RestConfiguration configuration, Map<String, Object> parameters, boolean api)
+ RestConfiguration configuration, Map<String, Object> parameters, boolean api)
throws Exception {
String path = basePath;