[OpenJDK 2D-Dev] Remove warnings

Roman Kennke roman.kennke at aicas.com
Thu Sep 27 20:13:28 UTC 2007


Hi Phil,

> > - Access static fields like SunGraphics2D.XYZ rather than sg2d.XYZ.
> > Better style generally and avoids potential programming error (rarely
> > though).
> 
> I suspect that this may have been a mixture of a personal stylistic
> choice and keeping the line lengths shorter to avoid wrapping or exceeding
> the 80 chars in our coding standards. Anyone know better?

In those cases the 80 chars limit has not been exceeded (I let my IDEs
show the 80 chars limit to avoid such problems).

> > - Add @Override to overriding methods. In case the superclass method
> > changes name and/or signature, this triggers a compiler error, thus
> > preventing accidental problems when refactoring.
> 
> Most likely we could find thousands of such cases which pre-date
> annotations. Does anyone know if there is a tool to (semi)automate this?

That would be a very useful tool. I'd be interested too.

Cheers, Roman 
-- 
Dipl.-Inform. (FH) Roman Kennke, Software Engineer, http://kennke.org
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-0
USt-Id: DE216375633, Handelsregister HRB 109481, AG Karlsruhe
Geschäftsführer: Dr. James J. Hunt




More information about the 2d-dev mailing list