org.springframework.util, with no Spring-specific concepts implied.
Used descriptively within the framework codebase. Can be validated by build-time tools (e.g. FindBugs or Animal Sniffer), alternative JVM languages (e.g. Kotlin), as well as IDEs (e.g. IntelliJ IDEA or Eclipse with corresponding project setup).
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | NonNull
A common Spring annotation to declare that annotated elements cannot be |
| public @interface | NonNullApi
A common Spring annotation to declare that parameters and return values are to be considered as non-nullable by default for a given package. |
| public @interface | NonNullFields
A common Spring annotation to declare that fields are to be considered as non-nullable by default for a given package. |
| public @interface | Nullable
A common Spring annotation to declare that annotated elements can be |