Browse Source

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

Closes gh-25452
pull/25458/head
XenoAmess 5 years ago committed by GitHub
parent
commit
e71f702bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      spring-core/src/main/java/org/springframework/core/MethodParameter.java
  2. 2
      spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/reactive/AbstractEncoderMethodReturnValueHandler.java
  3. 2
      spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java
  4. 2
      spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java

4
spring-core/src/main/java/org/springframework/core/MethodParameter.java

@ -910,7 +910,7 @@ public class MethodParameter { @@ -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 { @@ -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()) {

2
spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/reactive/AbstractEncoderMethodReturnValueHandler.java

@ -224,7 +224,7 @@ public abstract class AbstractEncoderMethodReturnValueHandler implements Handler @@ -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;
}

2
spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java

@ -837,7 +837,7 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init @@ -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();
}

2
spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java

@ -209,7 +209,7 @@ public abstract class AbstractMessageWriterResultHandler extends HandlerResultHa @@ -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();
}

Loading…
Cancel
Save