diff --git a/spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java b/spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java index 2b6caa0044..cbf9e97434 100644 --- a/spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java +++ b/spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java @@ -57,9 +57,18 @@ import static org.springframework.core.annotation.AnnotationUtils.*; */ public class AnnotationUtilsTests { + @Rule + public final ExpectedException exception = ExpectedException.none(); + + + @Before + public void clearCachesBeforeTests() { + clearCaches(); + } + static void clearCaches() { clearCache("findAnnotationCache", "annotatedInterfaceCache", "metaPresentCache", "synthesizableCache", - "attributeAliasesCache", "attributeMethodsCache", "aliasDescriptorCache"); + "attributeAliasesCache", "attributeMethodsCache", "aliasDescriptorCache"); } static void clearCache(String... cacheNames) { @@ -73,15 +82,6 @@ public class AnnotationUtilsTests { } - @Rule - public final ExpectedException exception = ExpectedException.none(); - - - @Before - public void clearCachesBeforeTests() { - clearCaches(); - } - @Test public void findMethodAnnotationOnLeaf() throws Exception { Method m = Leaf.class.getMethod("annotatedOnLeaf"); diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/SendToUser.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/SendToUser.java index fe4abb9e9d..06f2133e32 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/SendToUser.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/SendToUser.java @@ -51,8 +51,8 @@ public @interface SendToUser { /** * One or more destinations to send a message to. - *
If left unspecified, a default destination is selected based on - * the destination of the input message being handled. + *
If left unspecified, a default destination is selected based on the + * destination of the input message being handled. * @since 4.2 * @see #value * @see org.springframework.messaging.simp.annotation.support.SendToMethodReturnValueHandler @@ -63,8 +63,7 @@ public @interface SendToUser { /** * Whether messages should be sent to all sessions associated with the user * or only to the session of the input message being handled. - * - *
By default this is set to {@code true} in which case messages are + *
By default, this is set to {@code true} in which case messages are * broadcast to all sessions. */ boolean broadcast() default true;