...
Table of Contents |
---|
This rule overrides section 4.2 of Google Java Style Guide (only indentation size).
Each time a new block or block-like construct is opened, the indent increases by 4 spaces.
This rule overrides section 4.4 of Google Java Style Guide (only limit size).
Java code has a column limit of 140 characters.
These rules supplement section 4.8.5 of Google Java Style Guide.
...
Ignite 3 uses JetBrains nullability annotations. For the sake of code clarity it is prohibited to use @NotNull
annotation, even if it compromises the completeness of static analysis. However, it is required to use @Nullable
in the following places:
null
;null
as this parameter will not end in throwing an exception;null
....
There are multiple ways to annotate a Java array, which lead to different interpretation by the static analysis tool:
Code Block | ||
---|---|---|
| ||
@Nullable Object[] x; // x array can *contain* null values Object @Nullable [] x; // x itself can be null @Nullable Object @Nullable [] x; // x array can contain null values *and* be null itself |
...
It is recommended to enable all inspections, related to this topic. Please note, that all nested options should also be enabled:
...
All these options will be set automatically, when importing inspections settings from the repository.
...
var
keywordThe local variable type inference is the powerful feature of Java language. Nevertheless, one of the main goals of the code style guide is to ensure readability for developers, not for the compiler.
...