Use `static private` instead of `private static` for method declarations

Closes gh-25452
This commit is contained in:
XenoAmess 2020-07-22 00:26:28 +08:00 committed by GitHub
parent 05ef630f4f
commit e71f702bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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()) {

View File

@ -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;
}

View File

@ -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();
}

View File

@ -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();
}