Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 575 Bytes

Coding Style.md

File metadata and controls

18 lines (15 loc) · 575 Bytes

General

  • Encoding: UTF-8
  • Line ending: LF
  • Line length: 100 characters
  • Indentation: with tabs (1 tab should be displayed as 4 spaces)

Spaces

Put a space where it's useful, ie after a comma, around keywords, etc.

  • No space when casting: (int)value
  • No trailing space at the end of a line.

Empty lines

  • No empty line at the end of a file.
  • No empty line after the declaration of a class/interface/etc.

Everything else

Learn from the code that is already there. And follow this draft: http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html