This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new ba154a9 CAMEL-14163: Fix checkstyle
ba154a9 is described below
commit ba154a982030b1963102383c1ccd894c111ce72e
Author: Zoran Regvart <[email protected]>
AuthorDate: Sat Nov 9 00:17:40 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/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
b/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
index e6fddf4..3d55bed 100644
--- a/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
+++ b/camel-core/src/main/java/org/apache/camel/component/rest/RestProducer.java
@@ -419,7 +419,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);
}
}