From 6ccd858fc04359c5d203278b25ad3d9f1f53a662 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 20 Dec 2016 12:59:51 +0000 Subject: [PATCH] Fix checkstyle violations --- .../oauth2/client/OAuth2RestOperationsConfiguration.java | 4 ++-- .../security/oauth2/OAuth2AutoConfigurationTests.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration.java index 2f93b81cd6..55e30f672e 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration.java @@ -200,7 +200,7 @@ public class OAuth2RestOperationsConfiguration { static class ClientCredentialsCondition extends AnyNestedCondition { - public ClientCredentialsCondition() { + ClientCredentialsCondition() { super(ConfigurationPhase.PARSE_CONFIGURATION); } @@ -215,7 +215,7 @@ public class OAuth2RestOperationsConfiguration { static class NotClientCredentialsCondition extends NoneNestedConditions { - public NotClientCredentialsCondition() { + NotClientCredentialsCondition() { super(ConfigurationPhase.PARSE_CONFIGURATION); } diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java index dc32c4d16e..750f009b5f 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java @@ -196,7 +196,7 @@ public class OAuth2AutoConfigurationTests { "security.oauth2.client.clientId=client", "security.oauth2.client.grantType=client_credentials"); this.context.refresh(); - assertThat(context.getBean(OAuth2ClientContext.class).getAccessTokenRequest()) + assertThat(this.context.getBean(OAuth2ClientContext.class).getAccessTokenRequest()) .isNotNull(); assertThat(countBeans(ClientCredentialsResourceDetails.class)).isEqualTo(1); assertThat(countBeans(OAuth2ClientContext.class)).isEqualTo(1); @@ -212,7 +212,7 @@ public class OAuth2AutoConfigurationTests { "security.oauth2.client.grantType=client_credentials"); this.context.refresh(); // Thr primary context is fine (not session scoped): - assertThat(context.getBean(OAuth2ClientContext.class).getAccessTokenRequest()) + assertThat(this.context.getBean(OAuth2ClientContext.class).getAccessTokenRequest()) .isNotNull(); assertThat(countBeans(ClientCredentialsResourceDetails.class)).isEqualTo(1); /*