Missing documentation and enforcement that NameUtils.findFreshNameNumbered/Formatted needs TreeSet with custom comparator as input
The implementation of both functions requires the use of TreeSet<String>(NameUtils.STRING_CHARBUFFER_COMPARATOR)
. Otherwise it will fail to work.
-
Document the requirement -
Check and correct the input set if TreeSet with correct comprator not given
Edited by Tuukka Lehtonen