On Dec 28, 2007 3:54 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote:

> On Dec 28, 2007 8:43 AM, Doron Cohen <[EMAIL PROTECTED]> wrote:
> > >
> > > > a TS must implement one of them. I see no harm in implementing
> > > > the two (but doing so is likely to just duplicate TokenStream's
> code.)
> > >
> > > I don't think the contract was ever laid out so strictly.  I think
> > > it's fine for any TokenStream to implement both if it's advantageous
> > > to do so.
> > >
> >
> > From TokenStream's Javadocs:
> >   "subclasses must override at least one of next() or next(Token)."
>
> Meaning that it's also fine to override both.  We are agreeing, right?


Yes :-)

Doron

Reply via email to