Skip to content

Commit 230540b

Browse files
committed
Polishing contribution
Closes gh-34942
1 parent f9fa7cc commit 230540b

File tree

34 files changed

+71
-77
lines changed

34 files changed

+71
-77
lines changed

spring-beans/src/main/java/org/springframework/beans/BeanUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ public abstract class BeanUtils {
9595
* @return the new instance
9696
* @throws BeanInstantiationException if the bean cannot be instantiated
9797
* @see Class#newInstance()
98-
* @deprecated as of Spring 5.0, following the deprecation of
99-
* {@link Class#newInstance()} in JDK 9
98+
* @deprecated following the deprecation of {@link Class#newInstance()} in JDK 9
10099
*/
101100
@Deprecated(since = "5.0")
102101
public static <T> T instantiate(Class<T> clazz) throws BeanInstantiationException {

spring-beans/src/main/java/org/springframework/beans/factory/config/AutowireCapableBeanFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public interface AutowireCapableBeanFactory extends BeanFactory {
9797
* Constant that indicates determining an appropriate autowire strategy
9898
* through introspection of the bean class.
9999
* @see #autowire
100-
* @deprecated as of Spring 3.0: If you are using mixed autowiring strategies,
101-
* prefer annotation-based autowiring for clearer demarcation of autowiring needs.
100+
* @deprecated If you are using mixed autowiring strategies, prefer
101+
* annotation-based autowiring for clearer demarcation of autowiring needs.
102102
*/
103103
@Deprecated(since = "3.0")
104104
int AUTOWIRE_AUTODETECT = 4;
@@ -188,7 +188,7 @@ public interface AutowireCapableBeanFactory extends BeanFactory {
188188
* @see #AUTOWIRE_BY_NAME
189189
* @see #AUTOWIRE_BY_TYPE
190190
* @see #AUTOWIRE_CONSTRUCTOR
191-
* @deprecated as of 6.1, in favor of {@link #createBean(Class)}
191+
* @deprecated in favor of {@link #createBean(Class)}
192192
*/
193193
@Deprecated(since = "6.1")
194194
Object createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck) throws BeansException;

spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public abstract class AbstractBeanDefinition extends BeanMetadataAttributeAccess
9595
* Constant that indicates determining an appropriate autowire strategy
9696
* through introspection of the bean class.
9797
* @see #setAutowireMode
98-
* @deprecated as of Spring 3.0: If you are using mixed autowiring strategies,
99-
* use annotation-based autowiring for clearer demarcation of autowiring needs.
98+
* @deprecated If you are using mixed autowiring strategies, use
99+
* annotation-based autowiring for clearer demarcation of autowiring needs.
100100
*/
101101
@Deprecated(since = "3.0")
102102
public static final int AUTOWIRE_AUTODETECT = AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT;

spring-beans/src/main/java/org/springframework/beans/factory/support/PropertiesBeanDefinitionReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
* @author Rob Harrop
7676
* @since 26.11.2003
7777
* @see DefaultListableBeanFactory
78-
* @deprecated as of 5.3, in favor of Spring's common bean definition formats
79-
* and/or custom reader implementations
78+
* @deprecated in favor of Spring's common bean definition formats and/or
79+
* custom reader implementations
8080
*/
8181
@Deprecated(since = "5.3")
8282
public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader {

spring-context/src/main/java/org/springframework/context/support/AbstractResourceBasedMessageSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void setFallbackToSystemLocale(boolean fallbackToSystemLocale) {
156156
* Return whether to fall back to the system Locale if no files for a specific
157157
* Locale have been found.
158158
* @since 4.3
159-
* @deprecated as of 5.2.2, in favor of {@link #getDefaultLocale()}
159+
* @deprecated in favor of {@link #getDefaultLocale()}
160160
*/
161161
@Deprecated(since = "5.2.2")
162162
protected boolean isFallbackToSystemLocale() {

spring-context/src/main/java/org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ public int getActiveCount() {
299299
/**
300300
* Return the current setting for the remove-on-cancel mode.
301301
* <p>Requires an underlying {@link ScheduledThreadPoolExecutor}.
302-
* @deprecated as of 5.3.9, in favor of direct
303-
* {@link #getScheduledThreadPoolExecutor()} access
302+
* @deprecated in favor of direct {@link #getScheduledThreadPoolExecutor()} access
304303
*/
305304
@Deprecated(since = "5.3.9")
306305
public boolean isRemoveOnCancelPolicy() {

spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private GenericTypeResolver() {
5959
* @param methodParameter the method parameter specification
6060
* @param implementationClass the class to resolve type variables against
6161
* @return the corresponding generic parameter or return type
62-
* @deprecated since 5.2 in favor of {@code methodParameter.withContainingClass(implementationClass).getParameterType()}
62+
* @deprecated in favor of {@code methodParameter.withContainingClass(implementationClass).getParameterType()}
6363
*/
6464
@Deprecated(since = "5.2")
6565
public static Class<?> resolveParameterType(MethodParameter methodParameter, Class<?> implementationClass) {

spring-core/src/main/java/org/springframework/core/MethodParameter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public int getParameterIndex() {
264264
/**
265265
* Increase this parameter's nesting level.
266266
* @see #getNestingLevel()
267-
* @deprecated since 5.2 in favor of {@link #nested(Integer)}
267+
* @deprecated in favor of {@link #nested(Integer)}
268268
*/
269269
@Deprecated(since = "5.2")
270270
public void increaseNestingLevel() {
@@ -274,7 +274,7 @@ public void increaseNestingLevel() {
274274
/**
275275
* Decrease this parameter's nesting level.
276276
* @see #getNestingLevel()
277-
* @deprecated since 5.2 in favor of retaining the original MethodParameter and
277+
* @deprecated in favor of retaining the original MethodParameter and
278278
* using {@link #nested(Integer)} if nesting is required
279279
*/
280280
@Deprecated(since = "5.2")
@@ -307,7 +307,7 @@ public MethodParameter withTypeIndex(int typeIndex) {
307307
* @param typeIndex the corresponding type index
308308
* (or {@code null} for the default type index)
309309
* @see #getNestingLevel()
310-
* @deprecated since 5.2 in favor of {@link #withTypeIndex}
310+
* @deprecated in favor of {@link #withTypeIndex}
311311
*/
312312
@Deprecated(since = "5.2")
313313
public void setTypeIndexForCurrentLevel(int typeIndex) {
@@ -758,7 +758,7 @@ public MethodParameter clone() {
758758
* @param methodOrConstructor the Method or Constructor to specify a parameter for
759759
* @param parameterIndex the index of the parameter
760760
* @return the corresponding MethodParameter instance
761-
* @deprecated as of 5.0, in favor of {@link #forExecutable}
761+
* @deprecated in favor of {@link #forExecutable}
762762
*/
763763
@Deprecated(since = "5.0")
764764
public static MethodParameter forMethodOrConstructor(Object methodOrConstructor, int parameterIndex) {

spring-core/src/main/java/org/springframework/core/annotation/AnnotationFilter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ public String toString() {
7575
* {@link AnnotationFilter} that never matches and can be used when no
7676
* filtering is needed (allowing for any annotation types to be present).
7777
* @see #PLAIN
78-
* @deprecated as of 5.2.6 since the {@link MergedAnnotations} model
79-
* always ignores lang annotations according to the {@link #PLAIN} filter
80-
* (for efficiency reasons)
78+
* @deprecated since the {@link MergedAnnotations} model always ignores lang
79+
* annotations according to the {@link #PLAIN} filter, for efficiency reasons
8180
*/
8281
@Deprecated(since = "5.2.6")
8382
AnnotationFilter NONE = new AnnotationFilter() {

spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private static <A extends Annotation> boolean isSingleLevelPresent(MergedAnnotat
263263
* failed to resolve at runtime)
264264
* @since 4.0.8
265265
* @see AnnotatedElement#getAnnotations()
266-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
266+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
267267
*/
268268
@Deprecated(since = "5.2")
269269
public static Annotation @Nullable [] getAnnotations(AnnotatedElement annotatedElement) {
@@ -287,7 +287,7 @@ private static <A extends Annotation> boolean isSingleLevelPresent(MergedAnnotat
287287
* failed to resolve at runtime)
288288
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod(Method)
289289
* @see AnnotatedElement#getAnnotations()
290-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
290+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
291291
*/
292292
@Deprecated(since = "5.2")
293293
public static Annotation @Nullable [] getAnnotations(Method method) {
@@ -326,7 +326,7 @@ private static <A extends Annotation> boolean isSingleLevelPresent(MergedAnnotat
326326
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
327327
* @see java.lang.annotation.Repeatable
328328
* @see java.lang.reflect.AnnotatedElement#getAnnotationsByType
329-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
329+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
330330
*/
331331
@Deprecated(since = "5.2")
332332
public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedElement annotatedElement,
@@ -363,7 +363,7 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
363363
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
364364
* @see java.lang.annotation.Repeatable
365365
* @see java.lang.reflect.AnnotatedElement#getAnnotationsByType
366-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
366+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
367367
*/
368368
@Deprecated(since = "5.2")
369369
public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedElement annotatedElement,
@@ -407,7 +407,7 @@ public static <A extends Annotation> Set<A> getRepeatableAnnotations(AnnotatedEl
407407
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
408408
* @see java.lang.annotation.Repeatable
409409
* @see java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType
410-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
410+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
411411
*/
412412
@Deprecated(since = "5.2")
413413
public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement,
@@ -444,7 +444,7 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
444444
* @see org.springframework.core.BridgeMethodResolver#findBridgedMethod
445445
* @see java.lang.annotation.Repeatable
446446
* @see java.lang.reflect.AnnotatedElement#getDeclaredAnnotationsByType
447-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
447+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
448448
*/
449449
@Deprecated(since = "5.2")
450450
public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(AnnotatedElement annotatedElement,
@@ -595,7 +595,7 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
595595
* or {@code null} if not found
596596
* @see Class#isAnnotationPresent(Class)
597597
* @see Class#getDeclaredAnnotations()
598-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
598+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
599599
*/
600600
@Deprecated(since = "5.2")
601601
public static @Nullable Class<?> findAnnotationDeclaringClass(
@@ -631,7 +631,7 @@ public static <A extends Annotation> Set<A> getDeclaredRepeatableAnnotations(Ann
631631
* @since 3.2.2
632632
* @see Class#isAnnotationPresent(Class)
633633
* @see Class#getDeclaredAnnotations()
634-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
634+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
635635
*/
636636
@Deprecated(since = "5.2")
637637
public static @Nullable Class<?> findAnnotationDeclaringClassForTypes(
@@ -684,7 +684,7 @@ public static boolean isAnnotationDeclaredLocally(Class<? extends Annotation> an
684684
* is <em>present</em> and <em>inherited</em>
685685
* @see Class#isAnnotationPresent(Class)
686686
* @see #isAnnotationDeclaredLocally(Class, Class)
687-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
687+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
688688
*/
689689
@Deprecated(since = "5.2")
690690
public static boolean isAnnotationInherited(Class<? extends Annotation> annotationType, Class<?> clazz) {
@@ -702,7 +702,7 @@ public static boolean isAnnotationInherited(Class<? extends Annotation> annotati
702702
* @param metaAnnotationType the type of meta-annotation to search for
703703
* @return {@code true} if such an annotation is meta-present
704704
* @since 4.2.1
705-
* @deprecated as of 5.2 since it is superseded by the {@link MergedAnnotations} API
705+
* @deprecated since it is superseded by the {@link MergedAnnotations} API
706706
*/
707707
@Deprecated(since = "5.2")
708708
public static boolean isAnnotationMetaPresent(Class<? extends Annotation> annotationType,

spring-core/src/main/java/org/springframework/core/codec/AbstractDataBufferDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public Mono<T> decodeToMono(Publisher<DataBuffer> input, ResolvableType elementT
9797

9898
/**
9999
* How to decode a {@code DataBuffer} to the target element type.
100-
* @deprecated as of 5.2, please implement
100+
* @deprecated in favor of implementing
101101
* {@link #decode(DataBuffer, ResolvableType, MimeType, Map)} instead
102102
*/
103103
@Deprecated(since = "5.2")

spring-core/src/main/java/org/springframework/core/env/Environment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ default boolean matchesProfiles(String... profileExpressions) {
130130
* @see #getDefaultProfiles
131131
* @see #matchesProfiles(String...)
132132
* @see #acceptsProfiles(Profiles)
133-
* @deprecated as of 5.1 in favor of {@link #acceptsProfiles(Profiles)} or
134-
* {@link #matchesProfiles(String...)}
133+
* @deprecated in favor of {@link #acceptsProfiles(Profiles)} or {@link #matchesProfiles(String...)}
135134
*/
136135
@Deprecated(since = "5.1")
137136
boolean acceptsProfiles(String... profiles);

spring-core/src/main/java/org/springframework/core/task/AsyncTaskExecutor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ public interface AsyncTaskExecutor extends TaskExecutor {
4646

4747
/**
4848
* Constant that indicates immediate execution.
49-
* @deprecated as of 5.3.16 along with {@link #execute(Runnable, long)}
49+
* @deprecated along with {@link #execute(Runnable, long)}
5050
*/
5151
@Deprecated(since = "5.3.16")
5252
long TIMEOUT_IMMEDIATE = 0;
5353

5454
/**
5555
* Constant that indicates no time limit.
56-
* @deprecated as of 5.3.16 along with {@link #execute(Runnable, long)}
56+
* @deprecated along with {@link #execute(Runnable, long)}
5757
*/
5858
@Deprecated(since = "5.3.16")
5959
long TIMEOUT_INDEFINITE = Long.MAX_VALUE;
@@ -72,7 +72,7 @@ public interface AsyncTaskExecutor extends TaskExecutor {
7272
* of the timeout (i.e. it cannot be started in time)
7373
* @throws TaskRejectedException if the given task was not accepted
7474
* @see #execute(Runnable)
75-
* @deprecated as of 5.3.16 since the common executors do not support start timeouts
75+
* @deprecated since the common executors do not support start timeouts
7676
*/
7777
@Deprecated(since = "5.3.16")
7878
default void execute(Runnable task, long startTimeout) {

spring-core/src/main/java/org/springframework/core/task/TaskTimeoutException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @author Juergen Hoeller
2424
* @since 2.0.3
2525
* @see AsyncTaskExecutor#execute(Runnable, long)
26-
* @deprecated as of 5.3.16 since the common executors do not support start timeouts
26+
* @deprecated since the common executors do not support start timeouts
2727
*/
2828
@Deprecated(since = "5.3.16")
2929
@SuppressWarnings("serial")

spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class StandardAnnotationMetadata extends StandardClassMetadata implements
5858
* Create a new {@code StandardAnnotationMetadata} wrapper for the given Class.
5959
* @param introspectedClass the Class to introspect
6060
* @see #StandardAnnotationMetadata(Class, boolean)
61-
* @deprecated since 5.2 in favor of the factory method {@link AnnotationMetadata#introspect(Class)}
61+
* @deprecated in favor of the factory method {@link AnnotationMetadata#introspect(Class)}
6262
*/
6363
@Deprecated(since = "5.2")
6464
public StandardAnnotationMetadata(Class<?> introspectedClass) {
@@ -75,7 +75,7 @@ public StandardAnnotationMetadata(Class<?> introspectedClass) {
7575
* {@link org.springframework.core.annotation.AnnotationAttributes} for compatibility
7676
* with ASM-based {@link AnnotationMetadata} implementations
7777
* @since 3.1.1
78-
* @deprecated since 5.2 in favor of the factory method {@link AnnotationMetadata#introspect(Class)}.
78+
* @deprecated in favor of the factory method {@link AnnotationMetadata#introspect(Class)}.
7979
* Use {@link MergedAnnotation#asMap(org.springframework.core.annotation.MergedAnnotation.Adapt...) MergedAnnotation.asMap}
8080
* from {@link #getAnnotations()} rather than {@link #getAnnotationAttributes(String)}
8181
* if {@code nestedAnnotationsAsMap} is {@code false}

spring-core/src/main/java/org/springframework/core/type/StandardClassMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class StandardClassMetadata implements ClassMetadata {
4040
/**
4141
* Create a new StandardClassMetadata wrapper for the given Class.
4242
* @param introspectedClass the Class to introspect
43-
* @deprecated since 5.2 in favor of {@link StandardAnnotationMetadata}
43+
* @deprecated in favor of {@link StandardAnnotationMetadata}
4444
*/
4545
@Deprecated(since = "5.2")
4646
public StandardClassMetadata(Class<?> introspectedClass) {

spring-core/src/main/java/org/springframework/core/type/StandardMethodMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class StandardMethodMetadata implements MethodMetadata {
5252
/**
5353
* Create a new StandardMethodMetadata wrapper for the given Method.
5454
* @param introspectedMethod the Method to introspect
55-
* @deprecated since 5.2 in favor of obtaining instances via {@link AnnotationMetadata}
55+
* @deprecated in favor of obtaining instances via {@link AnnotationMetadata}
5656
*/
5757
@Deprecated(since = "5.2")
5858
public StandardMethodMetadata(Method introspectedMethod) {

spring-core/src/main/java/org/springframework/lang/NonNull.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* @author Sebastien Deleuze
4343
* @author Juergen Hoeller
4444
* @since 5.0
45-
* @deprecated since 7.0; use {@link org.jspecify.annotations.NonNull} instead
45+
* @deprecated use {@link org.jspecify.annotations.NonNull} instead
4646
* @see NonNullApi
4747
* @see NonNullFields
4848
* @see Nullable

spring-core/src/main/java/org/springframework/lang/NonNullApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @author Sebastien Deleuze
3939
* @author Juergen Hoeller
4040
* @since 5.0
41-
* @deprecated since 7.0; use {@link org.jspecify.annotations.NullMarked} instead
41+
* @deprecated use {@link org.jspecify.annotations.NullMarked} instead
4242
* @see NonNullFields
4343
* @see Nullable
4444
* @see NonNull

spring-core/src/main/java/org/springframework/lang/NonNullFields.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
* @author Sebastien Deleuze
3939
* @since 5.0
40-
* @deprecated since 7.0; use {@link org.jspecify.annotations.NullMarked} instead
40+
* @deprecated use {@link org.jspecify.annotations.NullMarked} instead
4141
* @see NonNullApi
4242
* @see Nullable
4343
* @see NonNull

spring-core/src/main/java/org/springframework/lang/Nullable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* @author Sebastien Deleuze
4343
* @author Juergen Hoeller
4444
* @since 5.0
45-
* @deprecated since 7.0; use {@link org.jspecify.annotations.Nullable} instead
45+
* @deprecated use {@link org.jspecify.annotations.Nullable} instead
4646
* @see NonNullApi
4747
* @see NonNullFields
4848
* @see NonNull

spring-core/src/main/java/org/springframework/util/ClassUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ public static boolean isLambdaClass(Class<?> clazz) {
939939
* Check whether the given object is a CGLIB proxy.
940940
* @param object the object to check
941941
* @see org.springframework.aop.support.AopUtils#isCglibProxy(Object)
942-
* @deprecated as of 5.2, in favor of custom (possibly narrower) checks
942+
* @deprecated in favor of custom (possibly narrower) checks
943943
* such as for a Spring AOP proxy
944944
*/
945945
@Deprecated(since = "5.2")
@@ -951,7 +951,7 @@ public static boolean isCglibProxy(Object object) {
951951
* Check whether the specified class is a CGLIB-generated class.
952952
* @param clazz the class to check
953953
* @see #getUserClass(Class)
954-
* @deprecated as of 5.2, in favor of custom (possibly narrower) checks
954+
* @deprecated in favor of custom (possibly narrower) checks
955955
* or simply a check for containing {@link #CGLIB_CLASS_SEPARATOR}
956956
*/
957957
@Deprecated(since = "5.2")
@@ -963,7 +963,7 @@ public static boolean isCglibProxyClass(@Nullable Class<?> clazz) {
963963
* Check whether the specified class name is a CGLIB-generated class.
964964
* @param className the class name to check
965965
* @see #CGLIB_CLASS_SEPARATOR
966-
* @deprecated as of 5.2, in favor of custom (possibly narrower) checks
966+
* @deprecated in favor of custom (possibly narrower) checks
967967
* or simply a check for containing {@link #CGLIB_CLASS_SEPARATOR}
968968
*/
969969
@Deprecated(since = "5.2")

spring-core/src/main/java/org/springframework/util/StringUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ public abstract class StringUtils {
105105
* {@link #hasLength(String)} or {@link #hasText(String)} instead.</b>
106106
* @param str the candidate object (possibly a {@code String})
107107
* @since 3.2.1
108-
* @deprecated as of 5.3, in favor of {@link #hasLength(String)} and
109-
* {@link #hasText(String)} (or {@link ObjectUtils#isEmpty(Object)})
108+
* @deprecated in favor of {@link #hasLength(String)} and {@link #hasText(String)}
109+
* (or {@link ObjectUtils#isEmpty(Object)})
110110
*/
111111
@Deprecated(since = "5.3")
112112
public static boolean isEmpty(@Nullable Object str) {

0 commit comments

Comments
 (0)