URL参数排序

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@112 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
william.liangf 2011-10-28 08:06:06 +00:00
parent ccbe3c070c
commit 70d44dafc0
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ public final class URL implements Serializable {
StringBuilder buf = new StringBuilder();
if (getParameters().size() > 0) {
boolean first = true;
for (Map.Entry<String, String> entry : getParameters().entrySet()) {
for (Map.Entry<String, String> entry : new TreeMap<String, String>(getParameters()).entrySet()) {
if (entry.getKey() != null && entry.getKey().length() > 0) {
if (first) {
first = false;