[jira] [Closed] (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] [Closed] (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 ]

Adrian Crum closed OFBIZ-5857.
------------------------------
       Resolution: Fixed
    Fix Version/s: Upcoming Branch

Fixed in rev 1637064. Thanks!

> 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
>            Assignee: Adrian Crum
>             Fix For: Upcoming Branch, 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)