From 98d4046e4b848e288559a7041c393d12fef83ee6 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 11 Feb 2026 17:37:06 +0100 Subject: [PATCH] =?UTF-8?q?Document=20that=20@=E2=81=A0Validated=20&=20@?= =?UTF-8?q?=E2=81=A0Lazy=20may=20be=20used=20as=20meta-annotations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See gh-36305 See gh-36306 --- .../main/java/org/springframework/context/annotation/Lazy.java | 3 +++ .../org/springframework/validation/annotation/Validated.java | 3 +++ 2 files changed, 6 insertions(+) diff --git a/spring-context/src/main/java/org/springframework/context/annotation/Lazy.java b/spring-context/src/main/java/org/springframework/context/annotation/Lazy.java index d8fc3e43db7..0f315ea86de 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/Lazy.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/Lazy.java @@ -54,6 +54,9 @@ import java.lang.annotation.Target; * for optional dependencies. For a programmatic equivalent, allowing for lazy references * with more sophistication, consider {@link org.springframework.beans.factory.ObjectProvider}. * + *

This annotation may be used as a meta-annotation to create custom + * composed annotations. + * * @author Chris Beams * @author Juergen Hoeller * @since 3.0 diff --git a/spring-context/src/main/java/org/springframework/validation/annotation/Validated.java b/spring-context/src/main/java/org/springframework/validation/annotation/Validated.java index 73bc91716e5..c8e2bc62bfd 100644 --- a/spring-context/src/main/java/org/springframework/validation/annotation/Validated.java +++ b/spring-context/src/main/java/org/springframework/validation/annotation/Validated.java @@ -41,6 +41,9 @@ import java.lang.annotation.Target; * for a specific bean to begin with. Can also be used as a meta-annotation on a * custom stereotype annotation or a custom group-specific validated annotation. * + *

This annotation may be used as a meta-annotation to create custom + * composed annotations. + * * @author Juergen Hoeller * @since 3.1 * @see jakarta.validation.Validator#validate(Object, Class[])