Fix checkstyle violations

pull/7634/merge
Dave Syer 8 years ago
parent 77a1a3b3c0
commit 6ccd858fc0
Notes: Phillip Webb 8 years ago
See gh-5011

@ -200,7 +200,7 @@ public class OAuth2RestOperationsConfiguration {
static class ClientCredentialsCondition extends AnyNestedCondition { static class ClientCredentialsCondition extends AnyNestedCondition {
public ClientCredentialsCondition() { ClientCredentialsCondition() {
super(ConfigurationPhase.PARSE_CONFIGURATION); super(ConfigurationPhase.PARSE_CONFIGURATION);
} }
@ -215,7 +215,7 @@ public class OAuth2RestOperationsConfiguration {
static class NotClientCredentialsCondition extends NoneNestedConditions { static class NotClientCredentialsCondition extends NoneNestedConditions {
public NotClientCredentialsCondition() { NotClientCredentialsCondition() {
super(ConfigurationPhase.PARSE_CONFIGURATION); super(ConfigurationPhase.PARSE_CONFIGURATION);
} }

@ -196,7 +196,7 @@ public class OAuth2AutoConfigurationTests {
"security.oauth2.client.clientId=client", "security.oauth2.client.clientId=client",
"security.oauth2.client.grantType=client_credentials"); "security.oauth2.client.grantType=client_credentials");
this.context.refresh(); this.context.refresh();
assertThat(context.getBean(OAuth2ClientContext.class).getAccessTokenRequest()) assertThat(this.context.getBean(OAuth2ClientContext.class).getAccessTokenRequest())
.isNotNull(); .isNotNull();
assertThat(countBeans(ClientCredentialsResourceDetails.class)).isEqualTo(1); assertThat(countBeans(ClientCredentialsResourceDetails.class)).isEqualTo(1);
assertThat(countBeans(OAuth2ClientContext.class)).isEqualTo(1); assertThat(countBeans(OAuth2ClientContext.class)).isEqualTo(1);
@ -212,7 +212,7 @@ public class OAuth2AutoConfigurationTests {
"security.oauth2.client.grantType=client_credentials"); "security.oauth2.client.grantType=client_credentials");
this.context.refresh(); this.context.refresh();
// Thr primary context is fine (not session scoped): // Thr primary context is fine (not session scoped):
assertThat(context.getBean(OAuth2ClientContext.class).getAccessTokenRequest()) assertThat(this.context.getBean(OAuth2ClientContext.class).getAccessTokenRequest())
.isNotNull(); .isNotNull();
assertThat(countBeans(ClientCredentialsResourceDetails.class)).isEqualTo(1); assertThat(countBeans(ClientCredentialsResourceDetails.class)).isEqualTo(1);
/* /*

Loading…
Cancel
Save