• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Code Conventions still up-to-date ?

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic