ParametersAreNonnullByDefault and ParametersAreNullableByDefault.See: Description
| Annotation Type | Description |
|---|---|
| FieldsAreNonnullByDefault |
Similar to
ParametersAreNonnullByDefault, but applies to fields of classes. |
| FieldsAreNullableByDefault |
Similar to
ParametersAreNullableByDefault, but applies to fields of classes. |
| ReturnValuesAreNonnullByDefault |
Similar to
ParametersAreNonnullByDefault, but applies to return values of methods. |
| ReturnValuesAreNullableByDefault |
Similar to
ParametersAreNullableByDefault, but applies to return values of methods. |
ParametersAreNonnullByDefault and ParametersAreNullableByDefault.
For some reason, JSR-305 only has these annotations for parameters, but allows you to build your own versions for
fields and return values.
Both classes and packages (package-info.java) can be annotated.
If a package is annotated then subpackages are not also included. Subpackages must be
annotated individually.
Copyright © 2016 Atlassian. All rights reserved.