On 08.07.2015, at 17:11, Marshall Schor <m...@schor.com> wrote: > I think that similar arguments apply to other getters, such as > getAnnotationIndex(some-type-spec). > > These are currently defined to be generic methods so they do type inferencing.
True. Mind, I'm arguing for the conservative and safe choice here ( typically not my role ;) ). Back in the issue [1] I had first chosen a signature that allowed non-safe type inference and you were cautious of that. But my feeling is that for the present case being cautious/conservative and in particular safe is the better choice. Cheers, -- Richard [1] https://issues.apache.org/jira/browse/UIMA-4299?focusedCommentId=14487976&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14487976