File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
spring-core/src/main/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .core ;
18
18
19
- import org .springframework .aot .AotDetector ;
20
-
21
19
/**
22
20
* Default implementation of the {@link ParameterNameDiscoverer} strategy interface,
23
21
* using the Java 8 standard reflection mechanism (if available), and falling back
24
- * to the ASM-based {@link LocalVariableTableParameterNameDiscoverer} (when not using
25
- * AOT-processed optimizations ) for checking debug information in the class file.
22
+ * to the ASM-based {@link LocalVariableTableParameterNameDiscoverer} (when not in
23
+ * a native image ) for checking debug information in the class file.
26
24
*
27
25
* <p>If a Kotlin reflection implementation is present,
28
26
* {@link KotlinReflectionParameterNameDiscoverer} is added first in the list and
@@ -45,7 +43,7 @@ public DefaultParameterNameDiscoverer() {
45
43
addDiscoverer (new KotlinReflectionParameterNameDiscoverer ());
46
44
}
47
45
addDiscoverer (new StandardReflectionParameterNameDiscoverer ());
48
- if (!AotDetector . useGeneratedArtifacts ()) {
46
+ if (!NativeDetector . inNativeImage ()) {
49
47
addDiscoverer (new LocalVariableTableParameterNameDiscoverer ());
50
48
}
51
49
}
You can’t perform that action at this time.
0 commit comments