Skip to content

Commit 80af7be

Browse files
committed
Polish null-safety reference documentation
1 parent f8c8873 commit 80af7be

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
= Null-safety
33

44
Although Java does not let you express null-safety with its type system, the Spring Framework
5-
now provides the following annotations in the `org.springframework.lang` package to let you
5+
provides the following annotations in the `org.springframework.lang` package to let you
66
declare nullability of APIs and fields:
77

88
* {api-spring-framework}/lang/Nullable.html[`@Nullable`]: Annotation to indicate that a
@@ -17,11 +17,10 @@ level that declares non-null as the default semantics for fields.
1717

1818
The Spring Framework itself leverages these annotations, but they can also be used in any
1919
Spring-based Java project to declare null-safe APIs and optionally null-safe fields.
20-
Generic type arguments, varargs and array elements nullability are not supported yet but
21-
should be in an upcoming release, see https://jira.spring.io/browse/SPR-15942[SPR-15942]
22-
for up-to-date information. Nullability declarations are expected to be fine-tuned between
23-
Spring Framework releases, including minor ones. Nullability of types used inside method
24-
bodies is outside of the scope of this feature.
20+
Generic type arguments, varargs and array elements nullability are not supported yet.
21+
Nullability declarations are expected to be fine-tuned between Spring Framework releases,
22+
including minor ones. Nullability of types used inside method bodies is outside the
23+
scope of this feature.
2524

2625
NOTE: Other common libraries such as Reactor and Spring Data provide null-safe APIs that
2726
use a similar nullability arrangement, delivering a consistent overall experience for
@@ -38,7 +37,7 @@ these annotations can be used by an IDE (such as IDEA or Eclipse) to provide use
3837
warnings related to null-safety in order to avoid `NullPointerException` at runtime.
3938

4039
They are also used to make Spring API null-safe in Kotlin projects, since Kotlin natively
41-
supports https://kotlinlang.org/docs/reference/null-safety.html[null-safety]. More details
40+
supports https://kotlinlang.org/docs/null-safety.html[null-safety]. More details
4241
are available in the xref:languages/kotlin/null-safety.adoc[Kotlin support documentation].
4342

4443

0 commit comments

Comments
 (0)