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
This commit is contained in:
Phillip Webb 2020-07-23 14:55:09 -07:00 committed by Rob Winch
parent 8e092f8d2c
commit 9caa39e370

View File

@ -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;
* );
* return rsocket.build();
* }
* // @formatter:on
*
* // @formatter:off
* &#064;Bean
* public MapReactiveUserDetailsService userDetailsService() {
* UserDetails user = User.withDefaultPasswordEncoder()
@ -78,7 +75,6 @@ import java.util.List;
* .build();
* return new MapReactiveUserDetailsService(user);
* }
* // @formatter:on
* }
* </pre>
*
@ -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;
* );
* return rsocket.build();
* }
* // @formatter:on
* }
* </pre>
* @author Rob Winch