empty declaration deprecated

Andrew Pimlott andrew@pimlott.ne.mediaone.net
Tue Jul 10 16:10:00 GMT 2001


On Tue, Jul 10, 2001 at 08:59:36AM -0700, Alexandre Petit-Bianco wrote:
> 
> Andrew Pimlott writes:
> 
> > From what I can find (mainly, the bug report gcj/295), this warning
> > is supposed to be about semicolons after inner classes.  The JLS
> > second edition says nothing bad about empty statements, so I hope
> > this is a mistake.
> > 
> > The code I actually care about is something like
> > 
> >     for (i=0; i<arr.length && arr[i] == null; i++) ;
> 
> As your example showed, the patch could use a little more discernment.
> Can you file a PR?

This is now PR 3635.  Thanks.

Andrew



More information about the Java mailing list