You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2018/07/03 21:39:00 UTC
[jira] [Resolved] (UIMA-5769) Inconsistent method name
[ https://issues.apache.org/jira/browse/UIMA-5769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marshall Schor resolved UIMA-5769.
----------------------------------
Resolution: Won't Fix
In the balance between renaming a public API and keeping public APIs stable, making the choice to keep the APIs stable.
> Inconsistent method name
> ------------------------
>
> Key: UIMA-5769
> URL: https://issues.apache.org/jira/browse/UIMA-5769
> Project: UIMA
> Issue Type: Improvement
> Components: CAS Editor
> Reporter: KuiLIU
> Priority: Major
>
> The following method is named "toList" that seems like to convert one object to a list, but the method just returns a list of FeatureStructure objects, so that the method name "getList" should be more clear than "toList".
> {code:java}
> /**
> * Retrieves a list of {@link FeatureStructure} objects.
> *
> * @return all selected {@link FeatureStructure} objects
> */
> public List<FeatureStructure> toList() {
> return mFeatureStructures;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)