Fixed a lot of checkstyle warnings'

This commit is contained in:
Marcin Grzejszczak
2018-10-01 12:29:33 +02:00
parent 6f5ef23674
commit 99d38afc69
268 changed files with 6488 additions and 4456 deletions

View File

@@ -31,6 +31,7 @@ public class SampleBackground {
@Autowired
private Tracer tracer;
private Random random = new Random();
@Async

View File

@@ -26,7 +26,7 @@ import org.springframework.integration.annotation.MessagingGateway;
@MessagingGateway
public interface SampleRequestResponse {
@Gateway(requestChannel="xform")
@Gateway(requestChannel = "xform")
String send(String input);
}

View File

@@ -30,20 +30,27 @@ import org.springframework.web.client.RestTemplate;
* @author Dave Syer
*
*/
@MessageEndpoint public class SampleService implements
ApplicationListener<ServletWebServerInitializedEvent> {
@MessageEndpoint
public class SampleService
implements ApplicationListener<ServletWebServerInitializedEvent> {
private static final Log log = LogFactory.getLog(SampleService.class);
@Autowired private RestTemplate restTemplate;
@Autowired
private RestTemplate restTemplate;
private int port;
@ServiceActivator(inputChannel="messages")
@ServiceActivator(inputChannel = "messages")
public void log(Message<?> message) {
log.info("Received: " + message);
this.restTemplate.getForObject("http://localhost:" + this.port + "/foo", String.class);
this.restTemplate.getForObject("http://localhost:" + this.port + "/foo",
String.class);
}
@Override public void onApplicationEvent(ServletWebServerInitializedEvent event) {
@Override
public void onApplicationEvent(ServletWebServerInitializedEvent event) {
this.port = event.getSource().getPort();
}
}

View File

@@ -26,7 +26,7 @@ import org.springframework.integration.annotation.MessagingGateway;
@MessagingGateway
public interface SampleSink {
@Gateway(requestChannel="messages")
@Gateway(requestChannel = "messages")
void send(String message);
}

View File

@@ -35,7 +35,7 @@ public class SampleTransformer {
@Autowired
SampleBackground background;
@ServiceActivator(inputChannel="xform")
@ServiceActivator(inputChannel = "xform")
public String log(Message<?> message) throws InterruptedException {
log.info("Received: " + message);
this.background.background();