This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: empty declaration deprecated



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]