Package org.springframework.lang
@NullMarked
package org.springframework.lang
Common annotations with language-level semantics: nullability as well as JDK API indications.
These annotations sit at the lowest level of Spring's package dependency arrangement, even
lower than
org.springframework.util
, with no Spring-specific concepts implied.
Used descriptively within the framework codebase. Can be validated by build-time tools (for example, FindBugs or Animal Sniffer), alternative JVM languages (for example, Kotlin), as well as IDEs (for example, IntelliJ IDEA or Eclipse with corresponding project setup).
-
ClassDescriptionSpecifies that the method return value must be used.Specifies some aspects of the method behavior depending on the arguments.Deprecated.Deprecated.since 7.0; use
NullMarked
insteadDeprecated.since 7.0; useNullMarked
insteadDeprecated.since 7.0; useNullable
instead
NonNull
instead