You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jaap Sperling (Jira)" <ji...@apache.org> on 2022/10/17 12:02:00 UTC

[jira] [Created] (TEXT-219) StringTokenizer#getTokenList does not support #remove

Jaap Sperling created TEXT-219:
----------------------------------

             Summary: 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


Upgraded to 1.10 from 1.9 and the {{StringTokenizer#toTokenList}} 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)