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

@@ -30,10 +30,12 @@ import org.springframework.stereotype.Component;
*/
@Component
public class SampleBackground {
private static final Log log = LogFactory.getLog(SampleBackground.class);
@Autowired
private Tracer tracer;
private Random random = new Random();
@Async

View File

@@ -35,16 +35,21 @@ import org.springframework.web.client.RestTemplate;
*/
@RestController
public class SampleController
implements ApplicationListener<ServletWebServerInitializedEvent > {
implements ApplicationListener<ServletWebServerInitializedEvent> {
private static final Log log = LogFactory.getLog(SampleController.class);
@Autowired
private RestTemplate restTemplate;
@Autowired
private Tracer tracer;
@Autowired
private SampleBackground controller;
private final Random random = new Random();
private int port;
@RequestMapping("/")
@@ -121,4 +126,5 @@ public class SampleController
public void onApplicationEvent(ServletWebServerInitializedEvent event) {
this.port = event.getSource().getPort();
}
}