Commit bec1c8f0 authored by Phillip Webb's avatar Phillip Webb

Polish

parent d784cb6a
...@@ -33,5 +33,4 @@ class FailingSpockTest extends Specification { ...@@ -33,5 +33,4 @@ class FailingSpockTest extends Specification {
//throw new RuntimeException("This should fail!") //throw new RuntimeException("This should fail!")
true == false true == false
} }
} }
...@@ -34,13 +34,11 @@ class JmsExample implements CommandLineRunner { ...@@ -34,13 +34,11 @@ class JmsExample implements CommandLineRunner {
jmsTemplate.send("spring-boot", messageCreator) jmsTemplate.send("spring-boot", messageCreator)
latch.await() latch.await()
} }
} }
@Log @Log
class Receiver { class Receiver {
CountDownLatch latch CountDownLatch latch
def receive(String message) { def receive(String message) {
log.info "Received ${message}" log.info "Received ${message}"
latch.countDown() latch.countDown()
......
...@@ -31,5 +31,3 @@ class JobConfig { ...@@ -31,5 +31,3 @@ class JobConfig {
return steps.get("step1").tasklet(tasklet()).build() return steps.get("step1").tasklet(tasklet()).build()
} }
} }
...@@ -50,7 +50,6 @@ class RabbitExample implements CommandLineRunner { ...@@ -50,7 +50,6 @@ class RabbitExample implements CommandLineRunner {
rabbitTemplate.convertAndSend(queueName, "Greetings from Spring Boot via RabbitMQ") rabbitTemplate.convertAndSend(queueName, "Greetings from Spring Boot via RabbitMQ")
latch.await() latch.await()
} }
} }
@Log @Log
......
...@@ -28,5 +28,3 @@ class Runner implements CommandLineRunner { ...@@ -28,5 +28,3 @@ class Runner implements CommandLineRunner {
latch.countDown() latch.countDown()
} }
} }
...@@ -6,5 +6,3 @@ class Runner implements CommandLineRunner { ...@@ -6,5 +6,3 @@ class Runner implements CommandLineRunner {
print "Hello World!" print "Hello World!"
} }
} }
...@@ -21,5 +21,3 @@ class MyService { ...@@ -21,5 +21,3 @@ class MyService {
return "World" return "World"
} }
} }
...@@ -13,6 +13,5 @@ class Example implements CommandLineRunner { ...@@ -13,6 +13,5 @@ class Example implements CommandLineRunner {
void run(String... args) { void run(String... args) {
println "Foo count=" + jdbcTemplate.queryForObject("SELECT COUNT(*) from FOO", Integer) println "Foo count=" + jdbcTemplate.queryForObject("SELECT COUNT(*) from FOO", Integer)
} }
} }
...@@ -19,5 +19,3 @@ class MyService { ...@@ -19,5 +19,3 @@ class MyService {
return "World!"; return "World!";
} }
} }
...@@ -63,12 +63,19 @@ import org.springframework.core.io.ResourceLoader; ...@@ -63,12 +63,19 @@ import org.springframework.core.io.ResourceLoader;
public class SpringApplicationBuilder { public class SpringApplicationBuilder {
private SpringApplication application; private SpringApplication application;
private ConfigurableApplicationContext context; private ConfigurableApplicationContext context;
private SpringApplicationBuilder parent; private SpringApplicationBuilder parent;
private AtomicBoolean running = new AtomicBoolean(false); private AtomicBoolean running = new AtomicBoolean(false);
private Set<Object> sources = new LinkedHashSet<Object>(); private Set<Object> sources = new LinkedHashSet<Object>();
private Map<String, Object> defaultProperties = new LinkedHashMap<String, Object>(); private Map<String, Object> defaultProperties = new LinkedHashMap<String, Object>();
private ConfigurableEnvironment environment; private ConfigurableEnvironment environment;
private Set<String> additionalProfiles = new LinkedHashSet<String>(); private Set<String> additionalProfiles = new LinkedHashSet<String>();
private Set<ApplicationContextInitializer<?>> initializers = new LinkedHashSet<ApplicationContextInitializer<?>>(); private Set<ApplicationContextInitializer<?>> initializers = new LinkedHashSet<ApplicationContextInitializer<?>>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment