This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 0070f37 CAMEL-14163: Fix checkstyle
0070f37 is described below
commit 0070f37da5550a3e2a609b164cce830d1e595c36
Author: Zoran Regvart <[email protected]>
AuthorDate: Sat Nov 9 00:14:09 2019 +0100
CAMEL-14163: Fix checkstyle
---
.../src/main/java/org/apache/camel/component/rest/RestProducer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
index 4a98e71..e80a8ce 100644
---
a/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
+++
b/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestProducer.java
@@ -443,7 +443,7 @@ public class RestProducer extends DefaultAsyncProducer {
query = URISupport.createQueryString(params);
// remove any dangling & caused by the absence of optional
parameters
while (query.endsWith("&")) {
- query = query.substring(0, query.length() - 1);
+ query = query.substring(0, query.length() - 1);
}
}