Commit b857a900 authored by Phillip Webb's avatar Phillip Webb

Cleanup trailing whitespace

parent 6e071d60
......@@ -12,7 +12,7 @@ class JmsExample implements CommandLineRunner {
@Autowired
JmsTemplate jmsTemplate
@Bean
DefaultMessageListenerContainer jmsListener(ConnectionFactory connectionFactory) {
new DefaultMessageListenerContainer([
......@@ -24,8 +24,8 @@ class JmsExample implements CommandLineRunner {
}}
])
}
void run(String... args) {
void run(String... args) {
def messageCreator = { session ->
session.createObjectMessage("Greetings from Spring Boot via ActiveMQ")
} as MessageCreator
......@@ -34,13 +34,13 @@ class JmsExample implements CommandLineRunner {
jmsTemplate.send("spring-boot", messageCreator)
latch.await()
}
}
@Log
class Receiver {
CountDownLatch latch
def receive(String message) {
log.info "Received ${message}"
latch.countDown()
......
......@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component;
@Aspect
@Component
public class ServiceMonitor {
@AfterReturning("execution(* *..*Service.*(..))")
public void logServiceAccess(JoinPoint joinPoint) {
System.out.println("Completed: " + joinPoint);
......
......@@ -27,13 +27,13 @@ import org.springframework.context.annotation.Configuration;
@EnableAutoConfiguration
@ComponentScan
public class SampleMongoApplication implements CommandLineRunner {
@Autowired
private CustomerRepository repository;
@Override
public void run(String... args) throws Exception {
repository.deleteAll();
// save a couple of customers
......
......@@ -27,14 +27,14 @@ import org.springframework.core.NestedCheckedException;
/**
* Tests for {@link SampleMongoApplication}.
*
*
* @author Dave Syer
*/
public class SampleMongoApplicationTests {
@Rule
public OutputCapture outputCapture = new OutputCapture();
@Test
public void testDefaultSettings() throws Exception {
try {
......
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