--- On Sun, 3/15/09, sebb <[email protected]> wrote:
> From: sebb <[email protected]>
> Subject: [LANG] 3.0 StrTokenizer API change for next()
> To: "Commons Developers List" <[email protected]>
> Date: Sunday, March 15, 2009, 11:31 AM
> StrTokenizer implements ListIterator
> currently.
>
> Given that it only deals in Strings, it could implement
> ListIterator<String>, however that would mean
> changing
>
> public Object next()
>
> to
>
> public String next()
>
> Any objections to implementing the above?
>
1. A String _is_ an Object; I am convinced that narrowed return types are the
right thing to do in Java5-compatible code. What reason could there be against
it?
2. We have no obligation to be BC anyway.
-Matt
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]