Skip to content

Commit 14e23bf

Browse files
committed
Merge pull request #27418 from izeye
* gh-27418: Polish Closes gh-27418
2 parents c8c1452 + 734293d commit 14e23bf

File tree

6 files changed

+4
-9
lines changed

6 files changed

+4
-9
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/client/MetricsRestTemplateCustomizerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ public void apply(Builder builder) {
185185
assertThat(restTemplate.getForObject(URI.create("/second/456"), String.class)).isEqualTo("OK");
186186
this.registry.get("http.client.requests").tags("uri", "/second/456").timer();
187187
this.mockServer.verify();
188-
189188
}
190189

191190
private static final class TestInterceptor implements ClientHttpRequestInterceptor {

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/reactive/server/MetricsWebFilterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private void assertMetricsContainsTag(String tagKey, String tagValue) {
142142

143143
class FaultyWebFluxTagsProvider extends DefaultWebFluxTagsProvider {
144144

145-
private volatile AtomicBoolean fail = new AtomicBoolean(false);
145+
private final AtomicBoolean fail = new AtomicBoolean(false);
146146

147147
FaultyWebFluxTagsProvider() {
148148
super(true);

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/web/servlet/FaultyWebMvcTagsProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class FaultyWebMvcTagsProvider extends DefaultWebMvcTagsProvider {
3333

34-
private volatile AtomicBoolean fail = new AtomicBoolean(false);
34+
private final AtomicBoolean fail = new AtomicBoolean(false);
3535

3636
FaultyWebMvcTagsProvider() {
3737
super(true);

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public SpringApplicationBuilder(Class<?>... sources) {
100100
/**
101101
* Creates a new {@link org.springframework.boot.SpringApplication} instances from the
102102
* given sources. Subclasses may override in order to provide a custom subclass of
103-
* {@link org.springframework.boot.SpringApplication}
103+
* {@link org.springframework.boot.SpringApplication}.
104104
* @param sources the sources
105105
* @return the {@link org.springframework.boot.SpringApplication} instance
106106
* @since 1.1.0

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/env/RandomValuePropertySourceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void longRangeWhenLowerBoundEqualsUpperBoundShouldFailWithIllegalArgumentExcepti
123123
}
124124

125125
@Test
126-
void longRangeWhenLowerBoundNegativeShouldFailWithIllegalArgumentException() {
126+
void longRangeWhenLowerBoundNegative() {
127127
Long value = (Long) this.source.getProperty("random.long[-4,4]");
128128
assertThat(value >= -4).isTrue();
129129
assertThat(value < 4).isTrue();

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-secure-webflux/src/test/java/smoketest/secure/webflux/CorsSampleActuatorApplicationTests.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import org.springframework.beans.factory.annotation.Autowired;
2222
import org.springframework.boot.test.context.SpringBootTest;
23-
import org.springframework.context.ApplicationContext;
2423
import org.springframework.test.context.ActiveProfiles;
2524
import org.springframework.test.web.reactive.server.WebTestClient;
2625

@@ -36,9 +35,6 @@ class CorsSampleActuatorApplicationTests {
3635
@Autowired
3736
private WebTestClient webClient;
3837

39-
@Autowired
40-
private ApplicationContext applicationContext;
41-
4238
@Test
4339
void endpointShouldReturnUnauthorized() {
4440
this.webClient.get().uri("/actuator/env").exchange().expectStatus().isUnauthorized();

0 commit comments

Comments
 (0)