uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject Re: AnnotationFS.getCoveredText returns null?
Date Thu, 23 Feb 2012 16:17:16 GMT
On 02/23/2012 04:57 PM, Thilo Goetz wrote:
> So if you ask me, the current behavior of getCoveredText() is
> fine, it just needs to be documented.

+1 to add documentation.

Shouldn't we then throw an exception as well when
the sofa is null?

You want to get the text, that is either possible or not.
It should be easy for user code to detect that.

With the current implementation you have to check
the range and for a null value.


View raw message