Add since attribute to Deprecated annotation
Also retaining standard Java parameter names for Spring's AspectJ sources now. See gh-29531
This commit is contained in:
@@ -11,10 +11,16 @@ sourceSets.test.java.srcDirs = files()
|
|||||||
compileAspectj {
|
compileAspectj {
|
||||||
sourceCompatibility "17"
|
sourceCompatibility "17"
|
||||||
targetCompatibility "17"
|
targetCompatibility "17"
|
||||||
|
ajcOptions {
|
||||||
|
compilerArgs += "-parameters"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compileTestAspectj {
|
compileTestAspectj {
|
||||||
sourceCompatibility "17"
|
sourceCompatibility "17"
|
||||||
targetCompatibility "17"
|
targetCompatibility "17"
|
||||||
|
ajcOptions {
|
||||||
|
compilerArgs += "-parameters"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
@@ -54,8 +54,9 @@ import org.springframework.util.ClassUtils;
|
|||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
* @deprecated as of 6.0.1, in favor of {@link StandardReflectionParameterNameDiscoverer}
|
* @deprecated as of 6.0.1, in favor of {@link StandardReflectionParameterNameDiscoverer}
|
||||||
|
* (with the "-parameters" compiler flag)
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0.1")
|
||||||
public class LocalVariableTableParameterNameDiscoverer implements ParameterNameDiscoverer {
|
public class LocalVariableTableParameterNameDiscoverer implements ParameterNameDiscoverer {
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(LocalVariableTableParameterNameDiscoverer.class);
|
private static final Log logger = LogFactory.getLog(LocalVariableTableParameterNameDiscoverer.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user