[
https://issues.apache.org/jira/browse/TEXT-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17618941#comment-17618941
]
Alex Herbert commented on TEXT-219:
-----------------------------------
The method is only used in toString() as a read only list and in the test
suite. So there should be no other effects.
The deprecated StrTokenizer still has the original getTokenList method so the
change was only made to the new replacement class StringTokenizer.
> StringTokenizer#getTokenList does not support #remove
> -----------------------------------------------------
>
> Key: TEXT-219
> URL: https://issues.apache.org/jira/browse/TEXT-219
> Project: Commons Text
> Issue Type: Bug
> Affects Versions: 1.10.0
> Reporter: Jaap Sperling
> Priority: Major
>
> Upgraded to 1.10 from 1.9 and the {{StringTokenizer#getTokenList}} method now
> returns an {{Arrays$ArrayList}} instead of a regular {{{}ArrayList{}}}.
> This causes calls to #add and #remove to throw
> UnsupportedOperationExceptions, even if the documentation states this returns
> modifiable lists
--
This message was sent by Atlassian Jira
(v8.20.10#820010)