Cleanup trailing whitespace

This commit is contained in:
Phillip Webb 2013-09-18 12:17:56 -07:00
parent 6e071d6017
commit b857a9001d
4 changed files with 10 additions and 10 deletions

View File

@ -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()

View File

@ -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);

View File

@ -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

View File

@ -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 {