Browse Source

Fix malformed formatter-on/off javadoc

Remove the formatter-on/formatter-off comments from Javadoc examples
so that they don't confuse checkstyle. The comments are not necessary
in the Javadoc since `pre` blocks are not formatted in the same
way as code.

Issue gh-8945
pull/8983/head
Phillip Webb 6 years ago committed by Rob Winch
parent
commit
9caa39e370
  1. 6
      config/src/main/java/org/springframework/security/config/annotation/rsocket/RSocketSecurity.java

6
config/src/main/java/org/springframework/security/config/annotation/rsocket/RSocketSecurity.java

@ -56,7 +56,6 @@ import java.util.List; @@ -56,7 +56,6 @@ import java.util.List;
* <pre class="code">
* &#064;EnableRSocketSecurity
* public class SecurityConfig {
* // @formatter:off
* &#064;Bean
* PayloadSocketAcceptorInterceptor rsocketInterceptor(RSocketSecurity rsocket) {
* rsocket
@ -66,9 +65,7 @@ import java.util.List; @@ -66,9 +65,7 @@ import java.util.List;
* );
* return rsocket.build();
* }
* // @formatter:on
*
* // @formatter:off
* &#064;Bean
* public MapReactiveUserDetailsService userDetailsService() {
* UserDetails user = User.withDefaultPasswordEncoder()
@ -78,7 +75,6 @@ import java.util.List; @@ -78,7 +75,6 @@ import java.util.List;
* .build();
* return new MapReactiveUserDetailsService(user);
* }
* // @formatter:on
* }
* </pre>
*
@ -87,7 +83,6 @@ import java.util.List; @@ -87,7 +83,6 @@ import java.util.List;
* <pre class="code">
* &#064;EnableRSocketSecurity
* public class SecurityConfig {
* // @formatter:off
* &#064;Bean
* PayloadSocketAcceptorInterceptor rsocketInterceptor(RSocketSecurity rsocket) {
* rsocket
@ -102,7 +97,6 @@ import java.util.List; @@ -102,7 +97,6 @@ import java.util.List;
* );
* return rsocket.build();
* }
* // @formatter:on
* }
* </pre>
* @author Rob Winch

Loading…
Cancel
Save