[ https://issues.apache.org/jira/browse/SOLR-17723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SOLR-17723: ---------------------------------- Labels: pull-request-available (was: ) > NamedList: update most callers of indexed access with alternatives > ------------------------------------------------------------------ > > Key: SOLR-17723 > URL: https://issues.apache.org/jira/browse/SOLR-17723 > Project: Solr > Issue Type: Improvement > Reporter: David Smiley > Assignee: David Smiley > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > A number of methods on NamedList are index based. – indexOf(key), > getName(idx), getVal(idx), and more. For a number of reasons, _most_ (not > all) callers should use alternatives, namely forEach or iterator(). Why: > will lessen the scope of impact of transitioning many NamedList usages to > Map. Map's methods are more familiar, and both forEach and iterator() are > slightly easier to read than indexed access. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org