[ https://issues.apache.org/jira/browse/GROOVY-11326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles closed GROOVY-11326. -------------------------------- Resolution: Fixed I prototyped this out and didn't find enough value for the added complexity. The {{collect}} changes allowed {{List}} and {{Set}} to come through. A change to {{collectEntries}} would only effectively expose {{SortedMap}} and {{NavigableMap}} while at the same time exposing the impl. classes like {{LinkedHashMap}} and so on. {{findResults}} could return {{List}} instead of {{Collection}} but that would prevent any future change that uses a different data structure. > DGM: improve return type for methods accepting collector > -------------------------------------------------------- > > Key: GROOVY-11326 > URL: https://issues.apache.org/jira/browse/GROOVY-11326 > Project: Groovy > Issue Type: Improvement > Components: groovy-jdk > Reporter: Eric Milles > Assignee: Eric Milles > Priority: Major > > Extension methods like {{collectEntries}}, {{collectKeys}} and > {{collectValues}} that accept the collector that is returned can return that > type. See {{collect(Object,Collection,Closure)}}. -- This message was sent by Atlassian Jira (v8.20.10#820010)