Merge branch 'master' into 2.0.x
This commit is contained in:
@@ -31,9 +31,8 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
public class SampleController {
|
||||
|
||||
private Zipkin zipkin;
|
||||
|
||||
private Random random = new Random();
|
||||
private final Zipkin zipkin;
|
||||
private final Random random = new Random();
|
||||
|
||||
@Autowired
|
||||
public SampleController(Zipkin zipkin) {
|
||||
|
||||
@@ -34,7 +34,7 @@ import zipkin.Span;
|
||||
@EnableFeignClients
|
||||
public class SampleFeignApplication {
|
||||
|
||||
private static Log logger = LogFactory.getLog(SampleFeignApplication.class);
|
||||
private static final Log logger = LogFactory.getLog(SampleFeignApplication.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleFeignApplication.class, args);
|
||||
|
||||
@@ -37,7 +37,7 @@ import zipkin.Span;
|
||||
@EnableZuulProxy
|
||||
public class SampleRibbonApplication {
|
||||
|
||||
private static Log logger = LogFactory.getLog(SampleRibbonApplication.class);
|
||||
private static final Log logger = LogFactory.getLog(SampleRibbonApplication.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(SampleRibbonApplication.class, args);
|
||||
|
||||
@@ -49,7 +49,7 @@ public class SampleController
|
||||
@Autowired
|
||||
private SampleBackground controller;
|
||||
|
||||
private Random random = new Random();
|
||||
final private Random random = new Random();
|
||||
private int port;
|
||||
|
||||
@RequestMapping("/")
|
||||
|
||||
@@ -31,8 +31,6 @@ import org.springframework.web.client.RestTemplate;
|
||||
@EnableAsync
|
||||
public class SampleSleuthApplication {
|
||||
|
||||
public static final String CLIENT_NAME = "testApp";
|
||||
|
||||
@Bean
|
||||
public RestTemplate restTemplate() {
|
||||
return new RestTemplate();
|
||||
|
||||
@@ -53,7 +53,7 @@ public abstract class AbstractIntegrationTest {
|
||||
|
||||
protected static final int POLL_INTERVAL = 1;
|
||||
protected static final int TIMEOUT = 20;
|
||||
protected RestTemplate restTemplate = new AssertingRestTemplate();
|
||||
protected final RestTemplate restTemplate = new AssertingRestTemplate();
|
||||
|
||||
@Before
|
||||
public void clearSpanBefore() {
|
||||
|
||||
@@ -48,7 +48,7 @@ public class SampleController
|
||||
@Autowired
|
||||
private SampleBackground controller;
|
||||
|
||||
private Random random = new Random();
|
||||
private final Random random = new Random();
|
||||
private int port;
|
||||
|
||||
@RequestMapping("/")
|
||||
|
||||
@@ -31,8 +31,6 @@ import org.springframework.web.client.RestTemplate;
|
||||
@EnableAsync
|
||||
public class SampleSleuthApplication {
|
||||
|
||||
public static final String CLIENT_NAME = "testApp";
|
||||
|
||||
@Bean
|
||||
public RestTemplate restTemplate() {
|
||||
return new RestTemplate();
|
||||
|
||||
Reference in New Issue
Block a user