David Smiley created SOLR-17723:
-----------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to