This commit is contained in:
Stephane Nicoll
2020-08-06 15:50:51 +02:00
parent 8b3f8a6138
commit dac63fc3e5
108 changed files with 185 additions and 172 deletions

View File

@@ -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;

View File

@@ -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();

View File

@@ -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

View File

@@ -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

View File

@@ -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();