CAMEL-10878: Fixed CS
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bc7c1529 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bc7c1529 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bc7c1529 Branch: refs/heads/master Commit: bc7c152922be8e71bdaa5b8597bb9a645db76127 Parents: c0b0913 Author: Andrea Cosentino <[email protected]> Authored: Thu Feb 23 13:21:36 2017 +0100 Committer: Andrea Cosentino <[email protected]> Committed: Thu Feb 23 13:49:28 2017 +0100 ---------------------------------------------------------------------- .../apache/camel/http/common/HttpCommonEndpoint.java | 12 ++++++------ .../java/org/apache/camel/http/common/HttpHelper.java | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/bc7c1529/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java index 0854085..69763b7 100644 --- a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java +++ b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java @@ -556,14 +556,14 @@ public abstract class HttpCommonEndpoint extends DefaultEndpoint implements Head this.cookieHandler = cookieHandler; } - public String getHttpMethod() { - return httpMethod; - } + public String getHttpMethod() { + return httpMethod; + } /** * Configure the Http method to use */ - public void setHttpMethod(String httpMethod) { - this.httpMethod = httpMethod; - } + public void setHttpMethod(String httpMethod) { + this.httpMethod = httpMethod; + } } http://git-wip-us.apache.org/repos/asf/camel/blob/bc7c1529/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java ---------------------------------------------------------------------- diff --git a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java index 8252063..c0b3e34 100644 --- a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java +++ b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java @@ -515,7 +515,7 @@ public final class HttpHelper { // compute what method to use either GET or POST HttpMethods answer; if (ObjectHelper.isNotEmpty(endpoint.getHttpMethod())) { - answer = HttpMethods.valueOf(endpoint.getHttpMethod()); + answer = HttpMethods.valueOf(endpoint.getHttpMethod()); } else { HttpMethods m = exchange.getIn().getHeader(Exchange.HTTP_METHOD, HttpMethods.class); if (m != null) {
