Hello, please correct me if I am wrong... I think there should be exception in the trim() method in the Span class as in the getCoveredText() method.
if (getEnd > text.length()) {
throw new IllegalArgumentException("...");
}
--
David Landa
V. P. Čkalova 798/24
160 00 Praha 6 Dejvice, Československo
(+420) 731 377 167 | [email protected]
