Description
The org.apache.logging.log4j.util.PropertiesUtil.Environment maintains a set of sources by using a ConcurrentSkipListSet backed with a PropertySource.Comparator.
Somewhat surprisingly, the ConcurrentSkipListSet will not add an item if comparing it to an existing one returns 0. This means that all PropertySource implementations must have unique getPriority() results. I think this might be better to use a Set that uses equals/hashCode to determine if items can be added and only use the Comparator for sorting.
Attachments
Issue Links
- links to