empty declaration deprecated

Alexandre Petit-Bianco apbianco@cygnus.com
Tue Jul 10 08:59:00 GMT 2001


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?

Thank you.

./A



More information about the Java mailing list