• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code Conventions still up-to-date ?

 
Jean-Claude Rouvinez
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I found the code conventions at this location:
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

Are they up-to-date (Revised April 20, 1999)?
If no, where could I find a newer version that reflects the changes of the versions 1.5 or 1.6?

Thank you for your help.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no more updated version of the code conventions. Although the statement "Revised April 20, 1999" is misleading - it has changed since then. But not recently - not for JDK 5 or 6. For the new features of JDK 5 I would simply follow the example of the code show in the JDK 5 release notes for new language features. For JDK 6 I don't think there are any new features which require new conventions. If you find a contradiction between the JDK 5 release notes and the code conventions, follow the conventions. But for any issue not addressed in the conventions (spacing around generics, enhanced for loops, and enums mostly) follow the release notes examples.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic