--- On Sun, 3/15/09, sebb <seb...@gmail.com> wrote:

> From: sebb <seb...@gmail.com>
> Subject: [LANG] 3.0 StrTokenizer API change for next()
> To: "Commons Developers List" <dev@commons.apache.org>
> 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: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
> 
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to