...
Note | ||
---|---|---|
| ||
|
...
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 | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
public void foo( Object obj1, Object obj2, ... , Object objN ) |
Mixing declartaion declaraion styles is not allowed.
...
Comments should be separated by space from "// ", "/ , "/** "* or " */". For example, / Notice the space. /
Use per-class importing.
In case of the naming conflict - use fully qualified names (FQN).
...
Empty lines should be used according to following rules:
Where | Number of empty lines required |
---|---|
Before package statement | 0 |
Before imports | 1 |
Between imports and static imports | 1 |
Before class header | 1 |
After class header | 0 |
Between class definition and EOF | 1 |
Between class members (filelds, methods, initializers) | 1 |
Between minimal semantic units in the method or initializer body | 1 |
Note that single blank line SHOULD NOT be used for the mere decoration of the source code. Avoid using double empty lines.
...