Polish
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -33,7 +33,7 @@ public class ExampleService {
|
||||
|
||||
private static final Charset CHARSET = StandardCharsets.UTF_8;
|
||||
|
||||
private RedisOperations<Object, Object> operations;
|
||||
private final RedisOperations<Object, Object> operations;
|
||||
|
||||
public ExampleService(RedisOperations<Object, Object> operations) {
|
||||
this.operations = operations;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,7 +28,7 @@ import org.springframework.web.client.RestTemplate;
|
||||
@Service
|
||||
public class AnotherExampleRestClient {
|
||||
|
||||
private RestTemplate restTemplate;
|
||||
private final RestTemplate restTemplate;
|
||||
|
||||
public AnotherExampleRestClient(RestTemplateBuilder builder) {
|
||||
this.restTemplate = builder.rootUri("https://example.com").build();
|
||||
|
||||
@@ -49,7 +49,7 @@ import static org.mockito.Mockito.verify;
|
||||
*/
|
||||
class WebTestClientAutoConfigurationTests {
|
||||
|
||||
private ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
||||
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
||||
.withConfiguration(AutoConfigurations.of(WebTestClientAutoConfiguration.class));
|
||||
|
||||
@Test
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*/
|
||||
class MockMvcAutoConfigurationTests {
|
||||
|
||||
private WebApplicationContextRunner contextRunner = new WebApplicationContextRunner()
|
||||
private final WebApplicationContextRunner contextRunner = new WebApplicationContextRunner()
|
||||
.withConfiguration(AutoConfigurations.of(MockMvcAutoConfiguration.class));
|
||||
|
||||
@Test
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.ws.client.core.WebServiceTemplate;
|
||||
@Service
|
||||
public class ExampleWebServiceClient {
|
||||
|
||||
private WebServiceTemplate webServiceTemplate;
|
||||
private final WebServiceTemplate webServiceTemplate;
|
||||
|
||||
public ExampleWebServiceClient(WebServiceTemplateBuilder builder) {
|
||||
this.webServiceTemplate = builder.build();
|
||||
|
||||
Reference in New Issue
Block a user