Use static private instead of private static for method declarations
Closes gh-25452
This commit is contained in:
@@ -910,7 +910,7 @@ public class MethodParameter {
|
||||
* Return the generic return type of the method, with support of suspending
|
||||
* functions via Kotlin reflection.
|
||||
*/
|
||||
static private Type getGenericReturnType(Method method) {
|
||||
private static Type getGenericReturnType(Method method) {
|
||||
try {
|
||||
KFunction<?> function = ReflectJvmMapping.getKotlinFunction(method);
|
||||
if (function != null && function.isSuspend()) {
|
||||
@@ -927,7 +927,7 @@ public class MethodParameter {
|
||||
* Return the return type of the method, with support of suspending
|
||||
* functions via Kotlin reflection.
|
||||
*/
|
||||
static private Class<?> getReturnType(Method method) {
|
||||
private static Class<?> getReturnType(Method method) {
|
||||
try {
|
||||
KFunction<?> function = ReflectJvmMapping.getKotlinFunction(method);
|
||||
if (function != null && function.isSuspend()) {
|
||||
|
||||
@@ -224,7 +224,7 @@ public abstract class AbstractEncoderMethodReturnValueHandler implements Handler
|
||||
*/
|
||||
private static class KotlinDelegate {
|
||||
|
||||
static private boolean isSuspend(@Nullable Method method) {
|
||||
private static boolean isSuspend(@Nullable Method method) {
|
||||
if (method == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -837,7 +837,7 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
|
||||
*/
|
||||
private static class KotlinDelegate {
|
||||
|
||||
static private boolean isSuspend(Method method) {
|
||||
private static boolean isSuspend(Method method) {
|
||||
KFunction<?> function = ReflectJvmMapping.getKotlinFunction(method);
|
||||
return function != null && function.isSuspend();
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ public abstract class AbstractMessageWriterResultHandler extends HandlerResultHa
|
||||
*/
|
||||
private static class KotlinDelegate {
|
||||
|
||||
static private boolean isSuspend(Method method) {
|
||||
private static boolean isSuspend(Method method) {
|
||||
KFunction<?> function = ReflectJvmMapping.getKotlinFunction(method);
|
||||
return function != null && function.isSuspend();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user