This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 de90ecd Update URISupport.java (#4813)
de90ecd is described below
commit de90ecd9aa8b7cabcf7a8246323e45cae05bba33
Author: Benjamin Zheng <[email protected]>
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) {