Commit b857a900 authored by Phillip Webb's avatar Phillip Webb

Cleanup trailing whitespace

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