[jira] [Updated] (OFBIZ-5857) Keep order in a Set of "getDefaultCandidateLocales" and "getCandidateLocales"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-5857) Keep order in a Set of "getDefaultCandidateLocales" and "getCandidateLocales"

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-5857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leon updated OFBIZ-5857:
------------------------
    Attachment: OFBIZ-5857.patch

> 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)