From 4e2626e8b785c575f38ec9f23a206f4b33e86444 Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Mon, 26 Apr 2021 09:51:21 -0400 Subject: [PATCH] Fix code formatter markers --- .../src/main/java/sample/config/DefaultSecurityConfig.java | 6 +++--- .../client/src/main/java/sample/config/SecurityConfig.java | 6 +++--- .../src/main/java/sample/config/ResourceServerConfig.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/samples/boot/oauth2-integration/authorizationserver/src/main/java/sample/config/DefaultSecurityConfig.java b/samples/boot/oauth2-integration/authorizationserver/src/main/java/sample/config/DefaultSecurityConfig.java index 9d569197..1eaca369 100644 --- a/samples/boot/oauth2-integration/authorizationserver/src/main/java/sample/config/DefaultSecurityConfig.java +++ b/samples/boot/oauth2-integration/authorizationserver/src/main/java/sample/config/DefaultSecurityConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 the original author or authors. + * Copyright 2020-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ import static org.springframework.security.config.Customizer.withDefaults; @EnableWebSecurity public class DefaultSecurityConfig { - // formatter:off + // @formatter:off @Bean SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http) throws Exception { http @@ -43,7 +43,7 @@ public class DefaultSecurityConfig { .formLogin(withDefaults()); return http.build(); } - // formatter:on + // @formatter:on // @formatter:off @Bean diff --git a/samples/boot/oauth2-integration/client/src/main/java/sample/config/SecurityConfig.java b/samples/boot/oauth2-integration/client/src/main/java/sample/config/SecurityConfig.java index f08964cc..56dfd0e4 100644 --- a/samples/boot/oauth2-integration/client/src/main/java/sample/config/SecurityConfig.java +++ b/samples/boot/oauth2-integration/client/src/main/java/sample/config/SecurityConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 the original author or authors. + * Copyright 2020-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ public class SecurityConfig { return (web) -> web.ignoring().antMatchers("/webjars/**"); } - // formatter:off + // @formatter:off @Bean SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http @@ -47,6 +47,6 @@ public class SecurityConfig { .oauth2Client(withDefaults()); return http.build(); } - // formatter:on + // @formatter:on } diff --git a/samples/boot/oauth2-integration/resourceserver/src/main/java/sample/config/ResourceServerConfig.java b/samples/boot/oauth2-integration/resourceserver/src/main/java/sample/config/ResourceServerConfig.java index 5759f284..d12e7d69 100644 --- a/samples/boot/oauth2-integration/resourceserver/src/main/java/sample/config/ResourceServerConfig.java +++ b/samples/boot/oauth2-integration/resourceserver/src/main/java/sample/config/ResourceServerConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 the original author or authors. + * Copyright 2020-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,7 @@ import org.springframework.security.web.SecurityFilterChain; @EnableWebSecurity public class ResourceServerConfig { - // formatter:off + // @formatter:off @Bean SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http @@ -39,6 +39,6 @@ public class ResourceServerConfig { .jwt(); return http.build(); } - // formatter:on + // @formatter:on }