Skip to content

Commit c5786c2

Browse files
committed
Polish
1 parent f96d73f commit c5786c2

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/OnlyOnceLoggingDenyMeterFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import org.springframework.util.Assert;
2929

3030
/**
31-
* {@link MeterFilter} to log only once a warning message and deny {@link Meter.Id}.
31+
* {@link MeterFilter} to log only once a warning message and deny {@code Meter.Id}.
3232
*
3333
* @author Jon Schneider
3434
* @author Dmytro Nosan

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/reactive/CloudFoundryWebFluxEndpointIntegrationTests.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,6 @@ public void linksToOtherEndpointsWithRestrictedAccess() {
167167
.jsonPath("_links.test-part").doesNotExist()));
168168
}
169169

170-
private AnnotationConfigReactiveWebServerApplicationContext createApplicationContext(
171-
Class<?>... config) {
172-
AnnotationConfigReactiveWebServerApplicationContext context = new AnnotationConfigReactiveWebServerApplicationContext();
173-
context.register(config);
174-
return context;
175-
}
176-
177170
private ContextConsumer<AssertableReactiveWebApplicationContext> withWebTestClient(
178171
Consumer<WebTestClient> clientConsumer) {
179172
return (context) -> {

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/PathMappedEndpointsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void getPathWhenContainsIdShouldReturnRootPath() {
9191
@Test
9292
public void getPathWhenMissingIdShouldReturnNull() {
9393
PathMappedEndpoints mapped = createTestMapped(null);
94-
assertThat(mapped.getRootPath("xx")).isNull();
94+
assertThat(mapped.getPath("xx")).isNull();
9595
}
9696

9797
@Test

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
@@ -48,7 +48,7 @@ public void setup() {
4848
MockClock clock = new MockClock();
4949
this.registry = new SimpleMeterRegistry(SimpleConfig.DEFAULT, clock);
5050
this.webFilter = new MetricsWebFilter(this.registry,
51-
new DefaultWebFluxTagsProvider(), REQUEST_METRICS_NAME);
51+
new DefaultWebFluxTagsProvider(), REQUEST_METRICS_NAME, true);
5252
}
5353

5454
@Test

0 commit comments

Comments
 (0)