Fixed a lot of checkstyle warnings'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user