Skip to content

Commit e71f702

Browse files
authored
Use static private instead of private static for method declarations
Closes gh-25452
1 parent 05ef630 commit e71f702

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ public static boolean isOptional(MethodParameter param) {
910910
* Return the generic return type of the method, with support of suspending
911911
* functions via Kotlin reflection.
912912
*/
913-
static private Type getGenericReturnType(Method method) {
913+
private static Type getGenericReturnType(Method method) {
914914
try {
915915
KFunction<?> function = ReflectJvmMapping.getKotlinFunction(method);
916916
if (function != null && function.isSuspend()) {
@@ -927,7 +927,7 @@ static private Type getGenericReturnType(Method method) {
927927
* Return the return type of the method, with support of suspending
928928
* functions via Kotlin reflection.
929929
*/
930-
static private Class<?> getReturnType(Method method) {
930+
private static Class<?> getReturnType(Method method) {
931931
try {
932932
KFunction<?> function = ReflectJvmMapping.getKotlinFunction(method);
933933
if (function != null && function.isSuspend()) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected abstract Mono<Void> handleEncodedContent(
224224
*/
225225
private static class KotlinDelegate {
226226

227-
static private boolean isSuspend(@Nullable Method method) {
227+
private static boolean isSuspend(@Nullable Method method) {
228228
if (method == null) {
229229
return false;
230230
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ public static Object evaluateTryFailure(Object retVal, TransactionAttribute txAt
837837
*/
838838
private static class KotlinDelegate {
839839

840-
static private boolean isSuspend(Method method) {
840+
private static boolean isSuspend(Method method) {
841841
KFunction<?> function = ReflectJvmMapping.getKotlinFunction(method);
842842
return function != null && function.isSuspend();
843843
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private List<MediaType> getMediaTypesFor(ResolvableType elementType) {
209209
*/
210210
private static class KotlinDelegate {
211211

212-
static private boolean isSuspend(Method method) {
212+
private static boolean isSuspend(Method method) {
213213
KFunction<?> function = ReflectJvmMapping.getKotlinFunction(method);
214214
return function != null && function.isSuspend();
215215
}

0 commit comments

Comments
 (0)