Skip to content

Commit 8e55ad1

Browse files
committed
Polishing
1 parent 66d8c28 commit 8e55ad1

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -138,11 +138,11 @@
138138
public @interface EnableAsync {
139139

140140
/**
141-
* Indicate the 'async' annotation type to be detected at either class
142-
* or method level. By default, both the {@link Async} annotation and
143-
* the EJB 3.1 {@code javax.ejb.Asynchronous} annotation will be
144-
* detected. <p>This setter property exists so that developers can provide
145-
* their own (non-Spring-specific) annotation type to indicate that a method
141+
* Indicate the 'async' annotation type to be detected at either class or
142+
* method level. By default, both the {@link Async} annotation and the
143+
* EJB 3.1 {@code javax.ejb.Asynchronous} annotation will be detected.
144+
* <p>This setter property exists so that developers can provide their
145+
* own (non-Spring-specific) annotation type to indicate that a method
146146
* (or all methods of a given class) should be invoked asynchronously.
147147
*/
148148
Class<? extends Annotation> annotation() default Annotation.class;
@@ -151,7 +151,6 @@
151151
* Indicate whether subclass-based (CGLIB) proxies are to be created as opposed
152152
* to standard Java interface-based proxies. The default is {@code false}. <strong>
153153
* Applicable only if {@link #mode()} is set to {@link AdviceMode#PROXY}</strong>.
154-
*
155154
* <p>Note that setting this attribute to {@code true} will affect <em>all</em>
156155
* Spring-managed beans requiring proxying, not just those marked with {@code @Async}.
157156
* For example, other beans marked with Spring's {@code @Transactional} annotation
@@ -176,4 +175,5 @@
176175
* existing proxies rather than double-proxy.
177176
*/
178177
int order() default Ordered.LOWEST_PRECEDENCE;
178+
179179
}

spring-context/src/main/java/org/springframework/scheduling/annotation/SchedulingConfiguration.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@
2323
import org.springframework.scheduling.config.TaskManagementConfigUtils;
2424

2525
/**
26-
* {@code @Configuration} class that registers a {@link
27-
* ScheduledAnnotationBeanPostProcessor} bean capable of processing Spring's @{@link
28-
* Scheduled} annotation.
26+
* {@code @Configuration} class that registers a {@link ScheduledAnnotationBeanPostProcessor}
27+
* bean capable of processing Spring's @{@link Scheduled} annotation.
2928
*
30-
* <p>This configuration class is automatically imported when using the @{@link
31-
* EnableScheduling} annotation. See {@code @EnableScheduling} Javadoc for complete usage
32-
* details.
29+
* <p>This configuration class is automatically imported when using the
30+
* @{@link EnableScheduling} annotation. See {@code @EnableScheduling}'s javadoc
31+
* for complete usage details.
3332
*
3433
* @author Chris Beams
3534
* @since 3.1

0 commit comments

Comments
 (0)