Skip to content

Commit

Permalink
Mention the Nullness API in the null safety refdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Jan 21, 2025
1 parent b3e8882 commit d83be7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework-docs/modules/ROOT/pages/core/null-safety.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ both Java by leveraging some tooling (https://github.com/uber/NullAway[NullAway]
annotations such as IntelliJ IDEA or Eclipse) and Kotlin where JSpecify annotations are automatically translated to
{kotlin-docs}/null-safety.html[Kotlin's null safety].

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

[[null-safety-libraries]]
== Annotating libraries with JSpecify annotations
Expand Down

0 comments on commit d83be7c

Please sign in to comment.