diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizers.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizers.java index 4537a70d1d..702a6a6f9b 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizers.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizers.java @@ -41,9 +41,9 @@ public class CacheManagerCustomizers { public CacheManagerCustomizers( List> customizers) { - this.customizers = (customizers != null ? - new ArrayList>(customizers) : - Collections.>emptyList()); + this.customizers = (customizers != null + ? new ArrayList>(customizers) + : Collections.>emptyList()); } /** @@ -57,8 +57,7 @@ public class CacheManagerCustomizers { public T customize(T cacheManager) { for (CacheManagerCustomizer customizer : this.customizers) { Class generic = ResolvableType - .forClass(CacheManagerCustomizer.class, - customizer.getClass()) + .forClass(CacheManagerCustomizer.class, customizer.getClass()) .resolveGeneric(); if (generic.isInstance(cacheManager)) { customize(cacheManager, customizer); diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizersTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizersTests.java index 2a1d647645..86f7c7ceff 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizersTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/cache/CacheManagerCustomizersTests.java @@ -37,8 +37,7 @@ public class CacheManagerCustomizersTests { @Test public void customizeWithNullCustomizersShouldDoNothing() { - new CacheManagerCustomizers(null) - .customize(mock(CacheManager.class)); + new CacheManagerCustomizers(null).customize(mock(CacheManager.class)); } @Test diff --git a/spring-boot-samples/spring-boot-sample-actuator-log4j2/src/test/java/sample/actuator/log4j2/SampleActuatorLog4J2ApplicationTests.java b/spring-boot-samples/spring-boot-sample-actuator-log4j2/src/test/java/sample/actuator/log4j2/SampleActuatorLog4J2ApplicationTests.java index d31440ba83..20f2fdd0c9 100644 --- a/spring-boot-samples/spring-boot-sample-actuator-log4j2/src/test/java/sample/actuator/log4j2/SampleActuatorLog4J2ApplicationTests.java +++ b/spring-boot-samples/spring-boot-sample-actuator-log4j2/src/test/java/sample/actuator/log4j2/SampleActuatorLog4J2ApplicationTests.java @@ -46,7 +46,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @AutoConfigureMockMvc public class SampleActuatorLog4J2ApplicationTests { - private static final Logger logger = LogManager.getLogger(SampleActuatorLog4J2ApplicationTests.class); + private static final Logger logger = LogManager + .getLogger(SampleActuatorLog4J2ApplicationTests.class); @Rule public OutputCapture output = new OutputCapture(); @@ -64,8 +65,8 @@ public class SampleActuatorLog4J2ApplicationTests { public void validateLoggersEndpoint() throws Exception { this.mvc.perform(get("/loggers/org.apache.coyote.http11.Http11NioProtocol")) .andExpect(status().isOk()) - .andExpect(content().string(equalTo( - "{\"configuredLevel\":\"WARN\"," + "\"effectiveLevel\":\"WARN\"}"))); + .andExpect(content().string(equalTo("{\"configuredLevel\":\"WARN\"," + + "\"effectiveLevel\":\"WARN\"}"))); } } diff --git a/spring-boot-samples/spring-boot-sample-actuator-noweb/pom.xml b/spring-boot-samples/spring-boot-sample-actuator-noweb/pom.xml index 8920257b71..ad3172668c 100644 --- a/spring-boot-samples/spring-boot-sample-actuator-noweb/pom.xml +++ b/spring-boot-samples/spring-boot-sample-actuator-noweb/pom.xml @@ -19,6 +19,7 @@ ${basedir}/../.. + org.springframework.boot spring-boot-starter-actuator @@ -27,13 +28,13 @@ org.springframework.boot spring-boot-starter-remote-shell - + org.springframework.boot spring-boot-configuration-processor true - + org.springframework.boot spring-boot-starter-test diff --git a/spring-boot-samples/spring-boot-sample-actuator/pom.xml b/spring-boot-samples/spring-boot-sample-actuator/pom.xml index d08ea2710e..b3d00c4beb 100644 --- a/spring-boot-samples/spring-boot-sample-actuator/pom.xml +++ b/spring-boot-samples/spring-boot-sample-actuator/pom.xml @@ -19,6 +19,7 @@ ${basedir}/../.. + org.springframework.boot spring-boot-starter-actuator @@ -39,38 +40,24 @@ org.springframework.boot spring-boot-starter-remote-shell - + com.h2database h2 runtime - + org.springframework.boot spring-boot-configuration-processor true - + org.springframework.boot spring-boot-starter-test test - diff --git a/spring-boot-samples/spring-boot-sample-actuator/src/main/java/sample/actuator/HelloWorldService.java b/spring-boot-samples/spring-boot-sample-actuator/src/main/java/sample/actuator/HelloWorldService.java index 1c742c7d07..18a3b3a9b7 100644 --- a/spring-boot-samples/spring-boot-sample-actuator/src/main/java/sample/actuator/HelloWorldService.java +++ b/spring-boot-samples/spring-boot-sample-actuator/src/main/java/sample/actuator/HelloWorldService.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2016 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. diff --git a/spring-boot-samples/spring-boot-sample-flyway/src/main/java/sample/flyway/SampleFlywayApplication.java b/spring-boot-samples/spring-boot-sample-flyway/src/main/java/sample/flyway/SampleFlywayApplication.java index 2323bd2770..ab5ef9539a 100644 --- a/spring-boot-samples/spring-boot-sample-flyway/src/main/java/sample/flyway/SampleFlywayApplication.java +++ b/spring-boot-samples/spring-boot-sample-flyway/src/main/java/sample/flyway/SampleFlywayApplication.java @@ -31,10 +31,12 @@ public class SampleFlywayApplication { @Bean public CommandLineRunner runner(final PersonRepository repository) { return new CommandLineRunner() { + @Override public void run(String... args) throws Exception { System.err.println(repository.findAll()); } + }; } diff --git a/spring-boot-samples/spring-boot-sample-integration/pom.xml b/spring-boot-samples/spring-boot-sample-integration/pom.xml index 28a972c873..e1456ded29 100644 --- a/spring-boot-samples/spring-boot-sample-integration/pom.xml +++ b/spring-boot-samples/spring-boot-sample-integration/pom.xml @@ -19,6 +19,7 @@ ${basedir}/../.. + org.springframework.boot spring-boot-starter-integration @@ -27,13 +28,13 @@ org.springframework.integration spring-integration-file - + org.springframework.boot spring-boot-configuration-processor true - + org.springframework.boot spring-boot-starter-test diff --git a/spring-boot-samples/spring-boot-sample-jersey/pom.xml b/spring-boot-samples/spring-boot-sample-jersey/pom.xml index 63ba43078c..4d9825ec9a 100644 --- a/spring-boot-samples/spring-boot-sample-jersey/pom.xml +++ b/spring-boot-samples/spring-boot-sample-jersey/pom.xml @@ -29,7 +29,6 @@ spring-boot-starter-tomcat provided - org.springframework.boot spring-boot-starter-test diff --git a/spring-boot-samples/spring-boot-sample-metrics-dropwizard/pom.xml b/spring-boot-samples/spring-boot-sample-metrics-dropwizard/pom.xml index f729b2ed84..11525fc227 100644 --- a/spring-boot-samples/spring-boot-sample-metrics-dropwizard/pom.xml +++ b/spring-boot-samples/spring-boot-sample-metrics-dropwizard/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 @@ -19,6 +20,7 @@ ${basedir}/../.. + org.springframework.boot spring-boot-starter-actuator @@ -31,13 +33,13 @@ io.dropwizard.metrics metrics-core - + org.springframework.boot spring-boot-configuration-processor true - + org.springframework.boot spring-boot-starter-test diff --git a/spring-boot-samples/spring-boot-sample-metrics-dropwizard/src/main/java/sample/metrics/dropwizard/SampleController.java b/spring-boot-samples/spring-boot-sample-metrics-dropwizard/src/main/java/sample/metrics/dropwizard/SampleController.java index f10b95c308..184f28d65b 100644 --- a/spring-boot-samples/spring-boot-sample-metrics-dropwizard/src/main/java/sample/metrics/dropwizard/SampleController.java +++ b/spring-boot-samples/spring-boot-sample-metrics-dropwizard/src/main/java/sample/metrics/dropwizard/SampleController.java @@ -33,7 +33,8 @@ public class SampleController { private final GaugeService gauges; - public SampleController(HelloWorldProperties helloWorldProperties, GaugeService gauges) { + public SampleController(HelloWorldProperties helloWorldProperties, + GaugeService gauges) { this.helloWorldProperties = helloWorldProperties; this.gauges = gauges; } @@ -42,8 +43,8 @@ public class SampleController { @ResponseBody public Map hello() { this.gauges.submit("timer.test.value", Math.random() * 1000 + 1000); - return Collections.singletonMap("message", "Hello " + - this.helloWorldProperties.getName()); + return Collections.singletonMap("message", + "Hello " + this.helloWorldProperties.getName()); } } diff --git a/spring-boot-samples/spring-boot-sample-metrics-opentsdb/pom.xml b/spring-boot-samples/spring-boot-sample-metrics-opentsdb/pom.xml index f9ab793f6c..be76d1bb42 100644 --- a/spring-boot-samples/spring-boot-sample-metrics-opentsdb/pom.xml +++ b/spring-boot-samples/spring-boot-sample-metrics-opentsdb/pom.xml @@ -19,6 +19,7 @@ ${basedir}/../.. + org.springframework.boot spring-boot-starter-actuator @@ -27,13 +28,13 @@ org.springframework.boot spring-boot-starter-web - + org.springframework.boot spring-boot-configuration-processor true - + org.springframework.boot spring-boot-starter-test diff --git a/spring-boot-samples/spring-boot-sample-metrics-redis/pom.xml b/spring-boot-samples/spring-boot-sample-metrics-redis/pom.xml index be55aff483..900f69452c 100644 --- a/spring-boot-samples/spring-boot-sample-metrics-redis/pom.xml +++ b/spring-boot-samples/spring-boot-sample-metrics-redis/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 @@ -19,6 +20,7 @@ ${basedir}/../.. + org.springframework.boot spring-boot-starter-actuator @@ -31,13 +33,13 @@ org.springframework.boot spring-boot-starter-data-redis - + org.springframework.boot spring-boot-configuration-processor true - + org.springframework.boot spring-boot-starter-test