From 32c14a2b4218005048ff26fdf8ad43ddef071db8 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 29 Oct 2021 11:04:01 +0200 Subject: [PATCH] Update Javadoc regarding repeatable annotation support --- .../jmx/export/annotation/ManagedNotification.java | 5 +++-- .../jmx/export/annotation/ManagedOperationParameter.java | 6 +++--- .../springframework/scheduling/annotation/Scheduled.java | 3 +++ .../org/springframework/jms/annotation/JmsListener.java | 5 ++++- .../springframework/test/context/TestPropertySource.java | 6 +++--- .../java/org/springframework/test/context/jdbc/Sql.java | 9 ++++----- 6 files changed, 20 insertions(+), 14 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotification.java b/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotification.java index 1a4f933e94..2543a35950 100644 --- a/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotification.java +++ b/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotification.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,8 @@ import java.lang.annotation.Target; /** * Type-level annotation that indicates a JMX notification emitted by a bean. * - *

As of Spring Framework 4.2.4, this annotation is declared as repeatable. + *

This annotation can be used as a {@linkplain Repeatable repeatable} + * annotation. * * @author Rob Harrop * @since 2.0 diff --git a/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperationParameter.java b/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperationParameter.java index 1b98436080..5f2366fdd5 100644 --- a/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperationParameter.java +++ b/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedOperationParameter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,9 +26,9 @@ import java.lang.annotation.Target; /** * Method-level annotation used to provide metadata about operation parameters, * corresponding to a {@code ManagedOperationParameter} attribute. - * Used as part of a {@link ManagedOperationParameters} annotation. * - *

As of Spring Framework 4.2.4, this annotation is declared as repeatable. + *

This annotation can be used as a {@linkplain Repeatable repeatable} + * annotation. * * @author Rob Harrop * @since 1.2 diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java index f3aa81296a..e3f4de5408 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java @@ -40,6 +40,9 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar; * done manually or, more conveniently, through the {@code } * XML element or {@link EnableScheduling @EnableScheduling} annotation. * + *

This annotation can be used as a {@linkplain Repeatable repeatable} + * annotation. + * *

This annotation may be used as a meta-annotation to create custom * composed annotations with attribute overrides. * diff --git a/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java b/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java index 7fee7e7093..72faf09e81 100644 --- a/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java +++ b/spring-jms/src/main/java/org/springframework/jms/annotation/JmsListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,6 +72,9 @@ import org.springframework.messaging.handler.annotation.MessageMapping; * {@link org.springframework.messaging.handler.annotation.SendTo @SendTo} to the * method declaration. * + *

This annotation can be used as a {@linkplain Repeatable repeatable} + * annotation. + * *

This annotation may be used as a meta-annotation to create custom * composed annotations with attribute overrides. * diff --git a/spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java b/spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java index f74b9c5c62..27bbc81c5f 100644 --- a/spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java +++ b/spring-test/src/main/java/org/springframework/test/context/TestPropertySource.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,8 +70,8 @@ import org.springframework.core.annotation.AliasFor; *