Author: nmalin Date: Sat Apr 25 07:03:47 2015 New Revision: 1675999 URL: http://svn.apache.org/r1675999 Log: correct String conversion to Set on StringUtil that not respect the field order, thanks to Francis Douet to raise it on the issue (OFBIZ-6299 Field order is not correct in the auto-complete for look-ups.)
Modified: ofbiz/branches/release14.12/framework/base/src/org/ofbiz/base/util/StringUtil.java Modified: ofbiz/branches/release14.12/framework/base/src/org/ofbiz/base/util/StringUtil.java URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/framework/base/src/org/ofbiz/base/util/StringUtil.java?rev=1675999&r1=1675998&r2=1675999&view=diff ============================================================================== --- ofbiz/branches/release14.12/framework/base/src/org/ofbiz/base/util/StringUtil.java (original) +++ ofbiz/branches/release14.12/framework/base/src/org/ofbiz/base/util/StringUtil.java Sat Apr 25 07:03:47 2015 @@ -23,8 +23,8 @@ import java.net.URLDecoder; import java.net.URLEncoder; import java.util.Collection; import java.util.HashMap; -import java.util.HashSet; import java.util.Iterator; +import java.util.LinkedHashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -367,7 +367,7 @@ public class StringUtil { * @return new List */ public static Set<String> toSet(String s) { - Set<String> newSet = new HashSet<String>(); + Set<String> newSet = new LinkedHashSet<String>(); if (s.startsWith("[") && s.endsWith("]")) { s = s.substring(1, s.length() - 1); String[] entries = s.split("\\,\\s");