Skip to content

Commit c4e8ffe

Browse files
committed
Remove outdated NativeDetector check for Kotlin reflection
See gh-25179
1 parent 639c047 commit c4e8ffe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -40,8 +40,7 @@
4040
public class DefaultParameterNameDiscoverer extends PrioritizedParameterNameDiscoverer {
4141

4242
public DefaultParameterNameDiscoverer() {
43-
// TODO Remove this conditional inclusion when upgrading to Kotlin 1.5, see https://youtrack.jetbrains.com/issue/KT-44594
44-
if (KotlinDetector.isKotlinReflectPresent() && !NativeDetector.inNativeImage()) {
43+
if (KotlinDetector.isKotlinReflectPresent()) {
4544
addDiscoverer(new KotlinReflectionParameterNameDiscoverer());
4645
}
4746
addDiscoverer(new StandardReflectionParameterNameDiscoverer());

0 commit comments

Comments
 (0)