You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/12/23 05:46:45 UTC
[camel] branch camel-3.7.x updated: Update URISupport.java (#4813)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.7.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.7.x by this push:
new dd613f9 Update URISupport.java (#4813)
dd613f9 is described below
commit dd613f960bd9cbf9510f4f0bb70b6e4d1f2bf323
Author: Benjamin Zheng <45...@qq.com>
AuthorDate: Wed Dec 23 13:45:35 2020 +0800
Update URISupport.java (#4813)
Did not set prev with key after compareTo, and prev value is always the first item of parameter.keySet(), if keyset like this: a, c, b, and the value of sort after for loop is false, but its shoud be true.
---
core/camel-util/src/main/java/org/apache/camel/util/URISupport.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/core/camel-util/src/main/java/org/apache/camel/util/URISupport.java b/core/camel-util/src/main/java/org/apache/camel/util/URISupport.java
index 7f1b1ee..6d77017 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/URISupport.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/URISupport.java
@@ -671,6 +671,7 @@ public final class URISupport {
sort = true;
break;
}
+ prev = key;
}
}
if (sort) {