Skip to content

Commit 4d15b58

Browse files
committed
Remove LocalVariableTableParameterNameDiscoverer
Closes gh-29559
1 parent 9342317 commit 4d15b58

File tree

3 files changed

+2
-622
lines changed

3 files changed

+2
-622
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -18,8 +18,7 @@
1818

1919
/**
2020
* Default implementation of the {@link ParameterNameDiscoverer} strategy interface,
21-
* delegating to the Java 8 standard reflection mechanism, with a deprecated fallback
22-
* to {@link LocalVariableTableParameterNameDiscoverer}.
21+
* delegating to the Java 8 standard reflection mechanism.
2322
*
2423
* <p>If a Kotlin reflection implementation is present,
2524
* {@link KotlinReflectionParameterNameDiscoverer} is added first in the list and
@@ -36,20 +35,13 @@
3635
*/
3736
public class DefaultParameterNameDiscoverer extends PrioritizedParameterNameDiscoverer {
3837

39-
@SuppressWarnings("removal")
4038
public DefaultParameterNameDiscoverer() {
4139
if (KotlinDetector.isKotlinReflectPresent()) {
4240
addDiscoverer(new KotlinReflectionParameterNameDiscoverer());
4341
}
4442

4543
// Recommended approach on Java 8+: compilation with -parameters.
4644
addDiscoverer(new StandardReflectionParameterNameDiscoverer());
47-
48-
// Deprecated fallback to class file parsing for -debug symbols.
49-
// Does not work on native images without class file resources.
50-
if (!NativeDetector.inNativeImage()) {
51-
addDiscoverer(new LocalVariableTableParameterNameDiscoverer());
52-
}
5345
}
5446

5547
}

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

Lines changed: 0 additions & 286 deletions
This file was deleted.

0 commit comments

Comments
 (0)