Refine KotlinDetector usages and implementation
This commit refines KotlinDetector usages and implementation in order to remove preliminary KotlinDetector#isKotlinReflectPresent invocations and to ensure that KotlinDetector methods are implemented safely and efficiently for such use case. Closes gh-34275
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -558,8 +558,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
|
||||
|
||||
private static boolean isKotlinProperty(Method method, String methodSuffix) {
|
||||
Class<?> clazz = method.getDeclaringClass();
|
||||
return KotlinDetector.isKotlinReflectPresent() &&
|
||||
KotlinDetector.isKotlinType(clazz) &&
|
||||
return KotlinDetector.isKotlinType(clazz) &&
|
||||
KotlinDelegate.isKotlinProperty(method, methodSuffix);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user