- Indentation has to be 2. Example
- Alignment
- Style
- Local values have to have
var
keyword that comes with Java 11. Example - Fields and methods have to annotatated with @NotNull and @Nullable. Nullable NotNull
- The classes that are not supposed to extensible have to have
final
keyword. Example - The methods where is in an abstract class should have
final
keyword. Example - The fields which suppose to be immutable have to have
final
keyword. Example - The constructors mustn't have real code in it. Wrong Correct
- Using
this
keyword for fields and methods is a must. Example - The Javadoc for each constructor, method, class, and the field is a must. Example
- The Javadocs start with lowercase letter is a must. Example
- The end line is a must. Example
- No blank line before the latest brace is a must. Example
- No blank line in any method is a must. Example
- Blank lines between fields and methods only 1 is a must. Example
- 1 blank line after the class header is a must. Example
- package-info.java for each package is a must. Example
- Local values have to have
- Alignment
- .
- Style
- .
- Style
- .properties files can have blank lines. Example