Skip to content

Commit d83be7c

Browse files
committedJan 21, 2025·
Mention the Nullness API in the null safety refdoc
See spring-projectsgh-34261
1 parent b3e8882 commit d83be7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎framework-docs/modules/ROOT/pages/core/null-safety.adoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ both Java by leveraging some tooling (https://github.com/uber/NullAway[NullAway]
1212
annotations such as IntelliJ IDEA or Eclipse) and Kotlin where JSpecify annotations are automatically translated to
1313
{kotlin-docs}/null-safety.html[Kotlin's null safety].
1414

15-
`@Nullable` annotations are also used at runtime to infer if a parameter is optional or not, for example via
16-
{spring-framework-api}/core/MethodParameter.html#isOptional()[`MethodParameter#isOptional`].
15+
The {spring-framework-api}/core/Nullness.html[`Nullness` Spring API] can be used at runtime to detect the nullness of a
16+
type usage, a field, a method return type or a parameter. It provides full support for JSpecify annotations and
17+
Kotlin null safety, as well as a pragmatic check on any `@Nullable` annotation (regardless of the package).
1718

1819
[[null-safety-libraries]]
1920
== Annotating libraries with JSpecify annotations

0 commit comments

Comments
 (0)
Please sign in to comment.