public class MyClass { private @NotNull String value; public void setValue(@NotNull String value) { this.value = value; } public @NotNull String getValue() { return value; } }
Such fields may violate the not-null constraint. E.g. in the example above while setValue
parameter is annotated as not-null
getValue
may return null if setter was not called.
Use the checkboxes below to control whether warning should be issued if field could be initialized implicitly (e.g. via dependency injection) or if field is written in test case setUp() method.