We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c952c commit bd8e682Copy full SHA for bd8e682
spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
@@ -268,10 +268,7 @@ public static <T> Constructor<T> getResolvableConstructor(Class<T> clazz) {
268
public static <T> Constructor<T> findPrimaryConstructor(Class<T> clazz) {
269
Assert.notNull(clazz, "Class must not be null");
270
if (KotlinDetector.isKotlinReflectPresent() && KotlinDetector.isKotlinType(clazz)) {
271
- Constructor<T> kotlinPrimaryConstructor = KotlinDelegate.findPrimaryConstructor(clazz);
272
- if (kotlinPrimaryConstructor != null) {
273
- return kotlinPrimaryConstructor;
274
- }
+ return KotlinDelegate.findPrimaryConstructor(clazz);
275
}
276
return null;
277
0 commit comments