Skip to content

Commit 932ce04

Browse files
committed
Stop referring to old Spring versions in Javadoc
1 parent e427ac2 commit 932ce04

File tree

26 files changed

+100
-107
lines changed

26 files changed

+100
-107
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/annotation/Autowired.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -54,18 +54,17 @@
5454
*
5555
* <h3>Autowired Parameters</h3>
5656
* <p>Although {@code @Autowired} can technically be declared on individual method
57-
* or constructor parameters since Spring Framework 5.0, most parts of the
58-
* framework ignore such declarations. The only part of the core Spring Framework
59-
* that actively supports autowired parameters is the JUnit Jupiter support in
60-
* the {@code spring-test} module (see the
57+
* or constructor parameters, most parts of the framework ignore such declarations.
58+
* The only part of the core Spring Framework that actively supports autowired
59+
* parameters is the JUnit Jupiter support in the {@code spring-test} module (see the
6160
* <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/testing.html#testcontext-junit-jupiter-di">TestContext framework</a>
6261
* reference documentation for details).
6362
*
6463
* <h3>Multiple Arguments and 'required' Semantics</h3>
6564
* <p>In the case of a multi-arg constructor or method, the {@link #required} attribute
6665
* is applicable to all arguments. Individual parameters may be declared as Java-8 style
67-
* {@link java.util.Optional} or, as of Spring Framework 5.0, also as {@code @Nullable}
68-
* or a not-null parameter type in Kotlin, overriding the base 'required' semantics.
66+
* {@link java.util.Optional} as well as {@code @Nullable} or a not-null parameter
67+
* type in Kotlin, overriding the base 'required' semantics.
6968
*
7069
* <h3>Autowiring Arrays, Collections, and Maps</h3>
7170
* <p>In case of an array, {@link java.util.Collection}, or {@link java.util.Map}

spring-context/src/main/java/org/springframework/context/ConfigurableApplicationContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ public interface ConfigurableApplicationContext extends ApplicationContext, Life
224224
* on JVM shutdown unless it has already been closed at that time.
225225
* <p>This method can be called multiple times. Only one shutdown hook
226226
* (at max) will be registered for each context instance.
227-
* <p>As of Spring Framework 5.2, the {@linkplain Thread#getName() name} of
228-
* the shutdown hook thread should be {@link #SHUTDOWN_HOOK_THREAD_NAME}.
227+
* <p>The {@linkplain Thread#getName() name} of the shutdown hook thread
228+
* should be {@link #SHUTDOWN_HOOK_THREAD_NAME}.
229229
* @see java.lang.Runtime#addShutdownHook
230230
* @see #close()
231231
*/

spring-context/src/main/java/org/springframework/instrument/classloading/glassfish/GlassFishLoadTimeWeaver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -30,7 +30,7 @@
3030
* {@link LoadTimeWeaver} implementation for GlassFish's
3131
* {@code org.glassfish.api.deployment.InstrumentableClassLoader InstrumentableClassLoader}.
3232
*
33-
* <p>As of Spring Framework 5.0, this weaver supports GlassFish 4+.
33+
* <p>This weaver supports GlassFish 4+.
3434
*
3535
* @author Costin Leau
3636
* @author Juergen Hoeller

spring-context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -31,8 +31,7 @@
3131
* {@link LoadTimeWeaver} implementation for JBoss's instrumentable ClassLoader.
3232
* Thanks to Ales Justin and Marius Bogoevici for the initial prototype.
3333
*
34-
* <p>As of Spring Framework 5.0, this weaver supports WildFly 8+.
35-
* As of Spring Framework 5.1.5, it also supports WildFly 13+.
34+
* <p>This weaver supports WildFly 13+.
3635
*
3736
* @author Costin Leau
3837
* @author Juergen Hoeller

spring-context/src/main/java/org/springframework/scheduling/config/ScheduledTaskRegistrar.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -295,8 +295,8 @@ public void addTriggerTask(TriggerTask task) {
295295

296296
/**
297297
* Add a {@link Runnable} task to be triggered per the given cron {@code expression}.
298-
* <p>As of Spring Framework 5.2, this method will not register the task if the
299-
* {@code expression} is equal to {@link #CRON_DISABLED}.
298+
* <p>This method will not register the task if the {@code expression} is
299+
* equal to {@link #CRON_DISABLED}.
300300
*/
301301
public void addCronTask(Runnable task, String expression) {
302302
if (!CRON_DISABLED.equals(expression)) {

spring-context/src/main/java/org/springframework/validation/DataBinder.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,10 @@ public String[] getAllowedFields() {
549549
* well as direct equality.
550550
* <p>The default implementation of this method stores disallowed field patterns
551551
* in {@linkplain PropertyAccessorUtils#canonicalPropertyName(String) canonical}
552-
* form. As of Spring Framework 5.2.21, the default implementation also transforms
553-
* disallowed field patterns to {@linkplain String#toLowerCase() lowercase} to
554-
* support case-insensitive pattern matching in {@link #isAllowed}. Subclasses
555-
* which override this method must therefore take both of these transformations
556-
* into account.
552+
* form and also transforms disallowed field patterns to
553+
* {@linkplain String#toLowerCase() lowercase} to support case-insensitive
554+
* pattern matching in {@link #isAllowed}. Subclasses which override this
555+
* method must therefore take both of these transformations into account.
557556
* <p>More sophisticated matching can be implemented by overriding the
558557
* {@link #isAllowed} method.
559558
* <p>Alternatively, specify a list of <i>allowed</i> field patterns.

spring-context/src/main/java/org/springframework/validation/beanvalidation/MethodValidationInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* at the type level of the containing target class, applying to all public service methods
7070
* of that class. By default, JSR-303 will validate against its default group only.
7171
*
72-
* <p>As of Spring 5.0, this functionality requires a Bean Validation 1.1+ provider.
72+
* <p>This functionality requires a Bean Validation 1.1+ provider.
7373
*
7474
* @author Juergen Hoeller
7575
* @author Rossen Stoyanchev

spring-context/src/main/java/org/springframework/validation/beanvalidation/MethodValidationPostProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -60,7 +60,7 @@
6060
* inline constraint annotations. Validation groups can be specified through {@code @Validated}
6161
* as well. By default, JSR-303 will validate against its default group only.
6262
*
63-
* <p>As of Spring 5.0, this functionality requires a Bean Validation 1.1+ provider.
63+
* <p>This functionality requires a Bean Validation 1.1+ provider.
6464
*
6565
* @author Juergen Hoeller
6666
* @since 3.1

spring-context/src/main/java/org/springframework/validation/beanvalidation/SpringValidatorAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
* {@link CustomValidatorBean} and {@link LocalValidatorFactoryBean},
5656
* and as the primary implementation of the {@link SmartValidator} interface.
5757
*
58-
* <p>As of Spring Framework 5.0, this adapter is fully compatible with
59-
* Bean Validation 1.1 as well as 2.0.
58+
* <p>This adapter is fully compatible with Bean Validation 1.1 as well as 2.0.
6059
*
6160
* @author Juergen Hoeller
6261
* @author Sam Brannen

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -25,8 +25,8 @@
2525
* <p>Note that some ClassLoaders do not expose the package metadata,
2626
* hence this class might not be able to determine the Spring version
2727
* in all environments. Consider using a reflection-based check instead &mdash;
28-
* for example, checking for the presence of a specific Spring 5.2
29-
* method that you intend to call.
28+
* for example, checking for the presence of a specific Spring method that you
29+
* intend to call.
3030
*
3131
* @author Juergen Hoeller
3232
* @since 1.1

0 commit comments

Comments
 (0)