From 097463e3b75a200a47784def2ae5e13b6809a649 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Tue, 7 Oct 2025 17:10:40 +0200 Subject: [PATCH] Remove outdated reference to JSR 305 in the reference documentation Closes gh-35580 --- .../pages/core/beans/annotation-config/autowired.adoc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired.adoc b/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired.adoc index c108047ec6c..edcefabd845 100644 --- a/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired.adoc +++ b/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired.adoc @@ -445,8 +445,8 @@ through Java 8's `java.util.Optional`, as the following example shows: ---- You can also use a parameter-level `@Nullable` annotation (of any kind in any package -- -for example, `javax.annotation.Nullable` from JSR-305) or just leverage Kotlin built-in -null-safety support: +for example, `org.jspecify.annotations.Nullable` from JSpecify) or just leverage Kotlin's +built-in null-safety support: [tabs] ====== @@ -477,13 +477,6 @@ Kotlin:: ---- ====== -[NOTE] -==== -A type-level `@Nullable` annotation such as from JSpecify is not supported in Spring -Framework 6.2 yet. You need to upgrade to Spring Framework 7.0 where the framework -detects type-level annotations and consistently declares JSpecify in its own codebase. -==== - You can also use `@Autowired` for interfaces that are well-known resolvable dependencies: `BeanFactory`, `ApplicationContext`, `Environment`, `ResourceLoader`, `ApplicationEventPublisher`, and `MessageSource`. These interfaces and their extended