Skip to content

Commit da6c7b8

Browse files
committed
Format Lambda Usage
This commit updates Lambda DSL usage to favor having the variable and reference on the same line Issue gh-13067
1 parent 777447e commit da6c7b8

35 files changed

+97
-194
lines changed

config/src/integration-test/java/org/springframework/security/config/annotation/rsocket/HelloRSocketITests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public void setup() {
7474
// @formatter:off
7575
this.server = RSocketServer.create()
7676
.payloadDecoder(PayloadDecoder.ZERO_COPY)
77-
.interceptors((registry) ->
78-
registry.forSocketAcceptor(this.interceptor)
77+
.interceptors((registry) -> registry.forSocketAcceptor(this.interceptor)
7978
)
8079
.acceptor(this.handler.responder())
8180
.bind(TcpServerTransport.create("localhost", 0))

config/src/integration-test/java/org/springframework/security/config/annotation/rsocket/HelloRSocketObservationITests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ public void setup() {
8787
// @formatter:off
8888
this.server = RSocketServer.create()
8989
.payloadDecoder(PayloadDecoder.ZERO_COPY)
90-
.interceptors((registry) ->
91-
registry.forSocketAcceptor(this.interceptor)
90+
.interceptors((registry) -> registry.forSocketAcceptor(this.interceptor)
9291
)
9392
.acceptor(this.handler.responder())
9493
.bind(TcpServerTransport.create("localhost", 0))

config/src/integration-test/java/org/springframework/security/config/annotation/rsocket/HelloRSocketWithWebFluxITests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public void setup() {
7474
// @formatter:off
7575
this.server = RSocketServer.create()
7676
.payloadDecoder(PayloadDecoder.ZERO_COPY)
77-
.interceptors((registry) ->
78-
registry.forSocketAcceptor(this.interceptor)
77+
.interceptors((registry) -> registry.forSocketAcceptor(this.interceptor)
7978
)
8079
.acceptor(this.handler.responder())
8180
.bind(TcpServerTransport.create("localhost", 0))

config/src/integration-test/java/org/springframework/security/config/annotation/rsocket/JwtITests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public void setup() {
8686
// @formatter:off
8787
this.server = RSocketServer.create()
8888
.payloadDecoder(PayloadDecoder.ZERO_COPY)
89-
.interceptors((registry) ->
90-
registry.forSocketAcceptor(this.interceptor)
89+
.interceptors((registry) -> registry.forSocketAcceptor(this.interceptor)
9190
)
9291
.acceptor(this.handler.responder())
9392
.bind(TcpServerTransport.create("localhost", 0))

config/src/integration-test/java/org/springframework/security/config/annotation/rsocket/RSocketMessageHandlerConnectionITests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ public void setup() {
8181
// @formatter:off
8282
this.server = RSocketServer.create()
8383
.payloadDecoder(PayloadDecoder.ZERO_COPY)
84-
.interceptors((registry) ->
85-
registry.forSocketAcceptor(this.interceptor)
84+
.interceptors((registry) -> registry.forSocketAcceptor(this.interceptor)
8685
)
8786
.acceptor(this.handler.responder())
8887
.bind(TcpServerTransport.create("localhost", 0))

config/src/integration-test/java/org/springframework/security/config/annotation/rsocket/RSocketMessageHandlerITests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ public void setup() {
7979
// @formatter:off
8080
this.server = RSocketServer.create()
8181
.payloadDecoder(PayloadDecoder.ZERO_COPY)
82-
.interceptors((registry) ->
83-
registry.forSocketAcceptor(this.interceptor)
82+
.interceptors((registry) -> registry.forSocketAcceptor(this.interceptor)
8483
)
8584
.acceptor(this.handler.responder())
8685
.bind(TcpServerTransport.create("localhost", 0))

config/src/integration-test/java/org/springframework/security/config/annotation/rsocket/SimpleAuthenticationITests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ public void setup() {
7979
// @formatter:off
8080
this.server = RSocketServer.create()
8181
.payloadDecoder(PayloadDecoder.ZERO_COPY)
82-
.interceptors((registry) ->
83-
registry.forSocketAcceptor(this.interceptor)
82+
.interceptors((registry) -> registry.forSocketAcceptor(this.interceptor)
8483
)
8584
.acceptor(this.handler.responder())
8685
.bind(TcpServerTransport.create("localhost", 0))

config/src/test/java/org/springframework/security/config/annotation/web/configurers/AnonymousConfigurerTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ static class AnonymousPrincipalInLambdaConfig {
129129
SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
130130
// @formatter:off
131131
http
132-
.anonymous((anonymous) ->
133-
anonymous
132+
.anonymous((anonymous) -> anonymous
134133
.principal("principal")
135134
);
136135
return http.build();

config/src/test/java/org/springframework/security/config/annotation/web/configurers/ChannelSecurityConfigurerTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ static class RequiresChannelInLambdaConfig {
186186
SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
187187
// @formatter:off
188188
http
189-
.requiresChannel((requiresChannel) ->
190-
requiresChannel
189+
.requiresChannel((requiresChannel) -> requiresChannel
191190
.anyRequest().requiresSecure()
192191
);
193192
return http.build();

config/src/test/java/org/springframework/security/config/annotation/web/configurers/CsrfConfigurerIgnoringRequestMatchersTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ static class IgnoringRequestInLambdaMatchers {
128128
SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
129129
// @formatter:off
130130
http
131-
.csrf((csrf) ->
132-
csrf
131+
.csrf((csrf) -> csrf
133132
.requireCsrfProtectionMatcher(new AntPathRequestMatcher("/path"))
134133
.ignoringRequestMatchers(this.requestMatcher)
135134
);
@@ -169,8 +168,7 @@ static class IgnoringPathsAndMatchersInLambdaConfig {
169168
SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
170169
// @formatter:off
171170
http
172-
.csrf((csrf) ->
173-
csrf
171+
.csrf((csrf) -> csrf
174172
.ignoringRequestMatchers(new AntPathRequestMatcher("/no-csrf"))
175173
.ignoringRequestMatchers(this.requestMatcher)
176174
);

0 commit comments

Comments
 (0)