Skip to content

Commit 61f7bd8

Browse files
committed
Polish
1 parent f86b44f commit 61f7bd8

File tree

8 files changed

+25
-28
lines changed

8 files changed

+25
-28
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -87,7 +87,7 @@ public DefaultOAuth2ClientContext oauth2ClientContext() {
8787

8888
@Configuration
8989
@ConditionalOnBean(OAuth2ClientConfiguration.class)
90-
@Conditional({OAuth2ClientIdCondition.class, NoClientCredentialsCondition.class})
90+
@Conditional({ OAuth2ClientIdCondition.class, NoClientCredentialsCondition.class })
9191
@Import(OAuth2ProtectedResourceDetailsConfiguration.class)
9292
protected static class SessionScopedConfiguration {
9393

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2RestOperationsConfigurationTests.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -78,8 +78,7 @@ public void requestScopedWithClientId() throws Exception {
7878
EnvironmentTestUtils.addEnvironment(this.environment,
7979
"security.oauth2.client.client-id=acme");
8080
initializeContext(ConfigForRequestScopedConfiguration.class, false);
81-
assertThat(this.context.containsBean("oauth2ClientContext"))
82-
.isTrue();
81+
assertThat(this.context.containsBean("oauth2ClientContext")).isTrue();
8382
}
8483

8584
@Test
@@ -95,8 +94,7 @@ public void sessionScopedWithClientId() throws Exception {
9594
EnvironmentTestUtils.addEnvironment(this.environment,
9695
"security.oauth2.client.client-id=acme");
9796
initializeContext(ConfigForSessionScopedConfiguration.class, false);
98-
assertThat(this.context.containsBean("oauth2ClientContext"))
99-
.isTrue();
97+
assertThat(this.context.containsBean("oauth2ClientContext")).isTrue();
10098
}
10199

102100
@Test
@@ -109,8 +107,7 @@ public void sessionScopedWithNoClientId() throws Exception {
109107

110108
private void initializeContext(Class<?> configuration, boolean isClientCredentials) {
111109
this.context = new SpringApplicationBuilder(configuration)
112-
.environment(this.environment)
113-
.web(!isClientCredentials).run();
110+
.environment(this.environment).web(!isClientCredentials).run();
114111
}
115112

116113
@Configuration
@@ -126,7 +123,8 @@ public MockEmbeddedServletContainerFactory embeddedServletContainerFactory() {
126123

127124
@Configuration
128125
@Import({ OAuth2ClientConfiguration.class, OAuth2RestOperationsConfiguration.class })
129-
protected static class ConfigForSessionScopedConfiguration extends WebApplicationConfiguration {
126+
protected static class ConfigForSessionScopedConfiguration
127+
extends WebApplicationConfiguration {
130128

131129
@Bean
132130
public SecurityProperties securityProperties() {
@@ -136,7 +134,8 @@ public SecurityProperties securityProperties() {
136134
}
137135

138136
@Configuration
139-
protected static class ConfigForRequestScopedConfiguration extends WebApplicationConfiguration {
137+
protected static class ConfigForRequestScopedConfiguration
138+
extends WebApplicationConfiguration {
140139

141140
}
142141

spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/java/org/springframework/boot/launchscript/SysVinitLaunchScriptIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,15 @@ public String visitDeclared(DeclaredType type, Void none) {
188188
+ type.asElement().getSimpleName().toString();
189189
}
190190
String qualifiedName = getQualifiedName(type.asElement());
191-
if (type.getTypeArguments().isEmpty()) {
191+
if (type.getTypeArguments().isEmpty()) {
192192
return qualifiedName;
193193
}
194-
else {
195-
StringBuilder name = new StringBuilder();
196-
name.append(qualifiedName);
197-
if (!type.getTypeArguments().isEmpty()) {
198-
appendTypeArguments(type, name);
199-
}
200-
return name.toString();
194+
StringBuilder name = new StringBuilder();
195+
name.append(qualifiedName);
196+
if (!type.getTypeArguments().isEmpty()) {
197+
appendTypeArguments(type, name);
201198
}
199+
return name.toString();
202200
}
203201

204202
private void appendTypeArguments(DeclaredType type, StringBuilder name) {

spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -123,8 +123,7 @@ protected boolean matchProductName(String productName) {
123123
* Firebird.
124124
*/
125125
FIREBIRD("Firebird", "org.firebirdsql.jdbc.FBDriver",
126-
"org.firebirdsql.ds.FBXADataSource",
127-
"SELECT 1 FROM RDB$DATABASE") {
126+
"org.firebirdsql.ds.FBXADataSource", "SELECT 1 FROM RDB$DATABASE") {
128127

129128
@Override
130129
protected Collection<String> getUrlPrefixes() {

spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -337,8 +337,9 @@ private ClientHttpRequestFactory createRequestFactory(
337337
/**
338338
* Set the {@link ClientHttpRequestFactory} that should be used with the
339339
* {@link RestTemplate}.
340-
* <p>Note that this request factory will be shared with all builder instances
341-
* derived from that point.
340+
* <p>
341+
* Note that this request factory will be shared with all builder instances derived
342+
* from that point.
342343
* @param requestFactory the request factory to use
343344
* @return a new builder instance
344345
*/

spring-boot/src/test/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)