Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: argument -> parameter

...

Note
titleTODO
  • Define indentation policy with multi-line parameter descriptions.

Method

...

Parameters

Two styles of method parameter declaration are allowed.  First style is The first style is preferred when all arguments parameters can fit in a single line before the page delimiter (120 char limit).

Code Block
java
java
public void foo(Object obj1, Object obj2, Object obj3, ..., Object objN)

If arguments parameters can't fit to on a single line, arguments parameters are splitted split by 120 char limit to several lines. 


Second The second style requires a new line for every argumentparameter.

Code Block
java
java
public void foo(
    Object obj1,
    Object obj2, 
    ... ,
    Object objN
)

Mixing declartaion declaraion styles is not allowed.

Spacing

...

Comments should be separated by space from "// ", "/ , "/** "* or " */". For example, / Notice the space. /

Package Importing

Use per-class importing.

In case of the naming conflict - use fully qualified names (FQN).

...

Empty lines should be used according to following rules:

WhereNumber of empty lines required
Before package statement0
Before imports1
Between imports and static imports1
Before class header1
After class header0
Between class definition and EOF1
Between class members (filelds, methods, initializers)1
Between minimal semantic units in the method or initializer body1

Note that single blank line SHOULD NOT be used for the mere decoration of the source code. Avoid using double empty lines.

...