zhfeng commented on code in PR #15558:
URL: https://github.com/apache/camel/pull/15558#discussion_r1764980938


##########
components/camel-lra/src/main/java/org/apache/camel/service/lra/LRAUrlBuilder.java:
##########
@@ -91,18 +91,12 @@ public LRAUrlBuilder options(Map<String, ?> options) {
 
     public LRAUrlBuilder query(String key, Object value) {
         LRAUrlBuilder copy = copy();
-        try {
-            key = URLEncoder.encode(toNonnullString(key), 
StandardCharsets.UTF_8.name());
-            value = URLEncoder.encode(toNonnullString(value), 
StandardCharsets.UTF_8.name());
-            if (copy.query.isEmpty()) {
-                copy.query += "?";
-            } else {
-                copy.query += "&";
-            }
-            copy.query += key + "=" + value;
-        } catch (UnsupportedEncodingException e) {
-            throw new IllegalStateException(e);
+        if (copy.query.isEmpty()) {
+            copy.query += "?";
+        } else {
+            copy.query += "&";
         }
+        copy.query += key + "=" + value;

Review Comment:
   ```suggestion
           copy.query += toNonnullString(key) + "=" + toNonnullString(value);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to