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 2017/09/21 21:27:00 UTC

[jira] [Created] (UIMA-5584) uv3 shorten api names for getting 0-length arrays/lists

Marshall Schor created UIMA-5584:
------------------------------------

             Summary: uv3 shorten api names for getting 0-length arrays/lists
                 Key: UIMA-5584
                 URL: https://issues.apache.org/jira/browse/UIMA-5584
             Project: UIMA
          Issue Type: Improvement
          Components: Core Java Framework
            Reporter: Marshall Schor
            Priority: Minor
             Fix For: 3.0.0SDK-beta


There are new APIs to get shared (per CAS) instances of empty lists and arrays of various types.

These APIs are called getEmpty/xxxx/List|Array  where xxxx can be blank or a type name part. (e.g. getEmptyFloatList).  

These APIs are found in the CAS, the JCas, and on the various JCas classes for the type kinds (e.g., FloatList has a getEmptyList())

Improve things by shortening these APIs uniformly by dropping the "get".  This will also align the style with how Java does this in its Collections class for empty instances.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)