You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
384 B
18 lines
384 B
5 years ago
|
The constructor does not initialize a field f which is not annotated with
|
||
|
@Nullable
|
||
|
|
||
|
Example:
|
||
|
|
||
|
```java
|
||
|
class C {
|
||
|
String f;
|
||
|
|
||
|
C () { // field f not initialized and not annotated @Nullable
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
Action: The preferred action is to initialize the field with a value that is not
|
||
|
null. If, by design, null is a valid value for the field, then it should be
|
||
|
annotated with @Nullable.
|