Skip to content

Commit a03ddd3

Browse files
committed
Polishing
1 parent bddf923 commit a03ddd3

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheProperties.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ public static class Hazelcast {
202202
*/
203203
private Resource config;
204204

205-
@DeprecatedConfigurationProperty(replacement = "spring.hazelcast.config",
206-
reason = "Use general hazelcast auto-configuration instead.")
205+
@DeprecatedConfigurationProperty(replacement = "spring.hazelcast.config", reason = "Use general hazelcast auto-configuration instead.")
207206
@Deprecated
208207
public Resource getConfig() {
209208
return this.config;

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheCompilerFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @author Dave Syer
3434
* @since 1.2.2
3535
* @see MustacheResourceTemplateLoader
36-
* @deprecated as of 1.5
36+
* @deprecated as of 1.5
3737
*/
3838
@Deprecated
3939
public class MustacheCompilerFactoryBean implements FactoryBean<Mustache.Compiler> {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jooq/JooqExceptionTranslatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static Object[] parameters() {
5959
new Object[] { SQLDialect.POSTGRES_9_3, sqlException("03000") },
6060
new Object[] { SQLDialect.POSTGRES_9_4, sqlException("03000") },
6161
new Object[] { SQLDialect.POSTGRES_9_5, sqlException("03000") },
62-
new Object[] { SQLDialect.SQLITE, sqlException("21000") }};
62+
new Object[] { SQLDialect.SQLITE, sqlException("21000") } };
6363
}
6464

6565
private static SQLException sqlException(String sqlState) {

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/WebMvcValidatorTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ public void close() {
5454

5555
@Test
5656
public void wrapLocalValidatorFactoryBean() {
57-
WebMvcValidator wrapper = load(
58-
LocalValidatorFactoryBeanConfig.class);
57+
WebMvcValidator wrapper = load(LocalValidatorFactoryBeanConfig.class);
5958
assertThat(wrapper.supports(SampleData.class)).isTrue();
6059
MapBindingResult errors = new MapBindingResult(new HashMap<String, Object>(),
6160
"test");

spring-boot/src/main/java/org/springframework/boot/logging/LoggerConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ public boolean equals(Object obj) {
102102
rtn = rtn && ObjectUtils.nullSafeEquals(this.name, other.name);
103103
rtn = rtn && ObjectUtils.nullSafeEquals(this.configuredLevel,
104104
other.configuredLevel);
105-
rtn = rtn && ObjectUtils.nullSafeEquals(this.effectiveLevel, other.effectiveLevel);
105+
rtn = rtn && ObjectUtils.nullSafeEquals(this.effectiveLevel,
106+
other.effectiveLevel);
106107
return rtn;
107108
}
108109
return super.equals(obj);

spring-boot/src/test/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactoryTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ private void awaitFile(File file) throws InterruptedException {
263263
}
264264

265265
private ServletContainer getServletContainerFromNewFactory() {
266-
UndertowEmbeddedServletContainer container = (UndertowEmbeddedServletContainer)
267-
getFactory().getEmbeddedServletContainer();
266+
UndertowEmbeddedServletContainer container = (UndertowEmbeddedServletContainer) getFactory()
267+
.getEmbeddedServletContainer();
268268
try {
269-
return ((DeploymentManager) ReflectionTestUtils.getField(container, "manager"))
270-
.getDeployment().getServletContainer();
269+
return ((DeploymentManager) ReflectionTestUtils.getField(container,
270+
"manager")).getDeployment().getServletContainer();
271271
}
272272
finally {
273273
container.stop();

spring-boot/src/test/java/org/springframework/boot/jta/atomikos/AtomikosPropertiesTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ public void testDefaultProperties() {
7575
assertThat(properties).contains(defaultOf(defaultSettings,
7676
"com.atomikos.icatch.max_timeout",
7777
"com.atomikos.icatch.default_jta_timeout",
78-
"com.atomikos.icatch.max_actives",
79-
"com.atomikos.icatch.enable_logging",
78+
"com.atomikos.icatch.max_actives", "com.atomikos.icatch.enable_logging",
8079
"com.atomikos.icatch.serial_jta_transactions",
8180
"com.atomikos.icatch.force_shutdown_on_vm_exit",
8281
"com.atomikos.icatch.log_base_name",
@@ -96,7 +95,8 @@ public void testDefaultProperties() {
9695

9796
private Properties loadDefaultSettings() {
9897
try {
99-
Class<?> target = ClassUtils.forName("com.atomikos.icatch.standalone.UserTransactionServiceImp",
98+
Class<?> target = ClassUtils.forName(
99+
"com.atomikos.icatch.standalone.UserTransactionServiceImp",
100100
getClass().getClassLoader());
101101
Method m = target.getMethod("getDefaultProperties");
102102
m.setAccessible(true);

0 commit comments

Comments
 (0)