Skip to content

Commit 5c6232e

Browse files
committed
Polish "Order modifiers to align with JLS"
See gh-31368
1 parent 919faa2 commit 5c6232e

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

buildSrc/config/checkstyle/checkstyle.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<property name="processJavadoc" value="true"/>
2020
</module>
2121

22+
<!-- Modifiers -->
23+
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck"/>
24+
2225
</module>
2326

2427
</module>

spring-messaging/src/main/java/org/springframework/messaging/simp/broker/OrderedMessageChannelDecorator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void run() {
204204
}
205205

206206

207-
private final static class CallbackTaskInterceptor implements ExecutorChannelInterceptor {
207+
private static final class CallbackTaskInterceptor implements ExecutorChannelInterceptor {
208208

209209
@Override
210210
public void afterMessageHandled(

spring-web/src/main/java/org/springframework/http/client/ReactorNettyClientRequestFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class ReactorNettyClientRequestFactory implements ClientHttpRequestFactor
4747

4848
private static final Log logger = LogFactory.getLog(ReactorNettyClientRequestFactory.class);
4949

50-
private final static Function<HttpClient, HttpClient> defaultInitializer = client -> client.compress(true);
50+
private static final Function<HttpClient, HttpClient> defaultInitializer = client -> client.compress(true);
5151

5252

5353
private HttpClient httpClient;

src/checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
</module>
189189

190190
<!-- Modifiers -->
191-
<module name="ModifierOrder" />
191+
<module name="com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck"/>
192192

193193
<!-- Miscellaneous -->
194194
<module name="com.puppycrawl.tools.checkstyle.checks.indentation.CommentsIndentationCheck">

0 commit comments

Comments
 (0)