Leon created OFBIZ-5857:
---------------------------
Summary: Keep order in a Set of "getDefaultCandidateLocales" and
"getCandidateLocales"
Key: OFBIZ-5857
URL: https://issues.apache.org/jira/browse/OFBIZ-5857
Project: OFBiz
Issue Type: Bug
Components: framework
Affects Versions: Trunk
Reporter: Leon
Fix For: Trunk
Attachments: OFBIZ-5857.patch
Both UtilProperties.getDefaultCandidateLocales and getCandidateLocales are
declared that contains locales "in that order", so it's not correct to use
HashSet to replace FastSet since the latter keeps the order but the former not.
Kindly note that if the FastSet is used with this order-keep feature
implicitly, we should use LinkedHashSet to replace it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)