Skip to content

Commit beb9fa2

Browse files
committed
Add since attribute to Deprecated annotation
Also retaining standard Java parameter names for Spring's AspectJ sources now. See gh-29531
1 parent 459e8a1 commit beb9fa2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

spring-aspects/spring-aspects.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ sourceSets.test.java.srcDirs = files()
1111
compileAspectj {
1212
sourceCompatibility "17"
1313
targetCompatibility "17"
14+
ajcOptions {
15+
compilerArgs += "-parameters"
16+
}
1417
}
1518
compileTestAspectj {
1619
sourceCompatibility "17"
1720
targetCompatibility "17"
21+
ajcOptions {
22+
compilerArgs += "-parameters"
23+
}
1824
}
1925

2026
dependencies {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@
5454
* @author Sam Brannen
5555
* @since 2.0
5656
* @deprecated as of 6.0.1, in favor of {@link StandardReflectionParameterNameDiscoverer}
57+
* (with the "-parameters" compiler flag)
5758
*/
58-
@Deprecated
59+
@Deprecated(since = "6.0.1")
5960
public class LocalVariableTableParameterNameDiscoverer implements ParameterNameDiscoverer {
6061

6162
private static final Log logger = LogFactory.getLog(LocalVariableTableParameterNameDiscoverer.class);

0 commit comments

Comments
 (0)