You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2025/10/10 18:01:00 UTC

[jira] [Updated] (COLLECTIONS-877) OrderedProperties.stringPropertyNames() returns an unordered set

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

Gary D. Gregory updated COLLECTIONS-877:
----------------------------------------
    Summary: OrderedProperties.stringPropertyNames() returns an unordered set  (was: OrderedProperties.stringPropertyNames() returns unordered set)

> OrderedProperties.stringPropertyNames() returns an unordered set
> ----------------------------------------------------------------
>
>                 Key: COLLECTIONS-877
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-877
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Properties
>    Affects Versions: 4.5.0
>            Reporter: Adam Rauch
>            Priority: Minor
>
> OrderedProperties is a handy addition; thanks for that. In my first use, I was surprised to see that stringPropertyNames() returns a hash-ordered set since the class doesn't override this method. There are other ways to get ordered names, of course, but this method is convenient given no need to cast. If this is intentional, I would recommend documenting what seems to me like an inconsistency.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)