Skip to content

Commit 8a89248

Browse files
committed
Refine Nullness Javadoc
See spring-projectsgh-34261
1 parent 7f21443 commit 8a89248

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spring-core/src/main/java/org/springframework/core/Nullness.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@
4242
* <p>The nullness applies to a type usage, a field, a method return type or a parameter.
4343
* <a href="https://jspecify.dev/docs/user-guide/">JSpecify annotations</a> are fully supported, as well as
4444
* <a href="https://kotlinlang.org/docs/null-safety.html">Kotlin null safety</a>, {@code @Nullable} annotations
45-
* regardless of their package (from Spring, JSR-305 or Jakarta set of annotations for example) and Java primitive
46-
* types.
45+
* regardless of their package and Java primitive types.
46+
*
47+
* <p>JSR-305 annotations as well as Spring ones in the {@code org.springframework.lang} packages such as
48+
* {@code @NonNullApi}, {@code @NonNullFields} and {@code @NonNull} are not supported by this API, except
49+
* {@code @Nullable} which is supported via the package-less check. Migrating to JSpecify is recommended.
4750
*
4851
* @author Sebastien Deleuze
4952
* @since 7.0

0 commit comments

Comments
 (0)