Skip to content

Commit c823f44

Browse files
izeyesnicoll
authored andcommitted
Polish
See gh-25451
1 parent c35a4cc commit c823f44

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private <K, V> void addListener(DefaultKafkaProducerFactory<K, V> factory, Meter
7676
static class KafkaStreamsMetricsConfiguration {
7777

7878
@Bean
79-
StreamsBuilderFactoryBeanCustomizer kafkaStreamsProducerMetrics(MeterRegistry meterRegistry) {
79+
StreamsBuilderFactoryBeanCustomizer kafkaStreamsMetrics(MeterRegistry meterRegistry) {
8080
return (factoryBean) -> factoryBean.addListener(new KafkaStreamsMicrometerListener(meterRegistry));
8181
}
8282

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ConditionalOnEnabledMetricsExportAutoConfigurationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void exporterCanBeGloballyDisabled() {
5050
}
5151

5252
@Test
53-
void exporterCanBeGloballyDisabledWitSpecificOverride() {
53+
void exporterCanBeGloballyDisabledWithSpecificOverride() {
5454
this.contextRunner
5555
.withPropertyValues("management.metrics.export.defaults.enabled=false",
5656
"management.metrics.export.simple.enabled=true")

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/influx/InfluxDbHealthIndicatorTests.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,24 @@ class InfluxDbHealthIndicatorTests {
4242
void influxDbIsUp() {
4343
Pong pong = mock(Pong.class);
4444
given(pong.getVersion()).willReturn("0.9");
45-
InfluxDB influxDB = mock(InfluxDB.class);
46-
given(influxDB.ping()).willReturn(pong);
47-
InfluxDbHealthIndicator healthIndicator = new InfluxDbHealthIndicator(influxDB);
45+
InfluxDB influxDb = mock(InfluxDB.class);
46+
given(influxDb.ping()).willReturn(pong);
47+
InfluxDbHealthIndicator healthIndicator = new InfluxDbHealthIndicator(influxDb);
4848
Health health = healthIndicator.health();
4949
assertThat(health.getStatus()).isEqualTo(Status.UP);
5050
assertThat(health.getDetails().get("version")).isEqualTo("0.9");
51-
verify(influxDB).ping();
51+
verify(influxDb).ping();
5252
}
5353

5454
@Test
5555
void influxDbIsDown() {
56-
InfluxDB influxDB = mock(InfluxDB.class);
57-
given(influxDB.ping()).willThrow(new InfluxDBException(new IOException("Connection failed")));
58-
InfluxDbHealthIndicator healthIndicator = new InfluxDbHealthIndicator(influxDB);
56+
InfluxDB influxDb = mock(InfluxDB.class);
57+
given(influxDb.ping()).willThrow(new InfluxDBException(new IOException("Connection failed")));
58+
InfluxDbHealthIndicator healthIndicator = new InfluxDbHealthIndicator(influxDb);
5959
Health health = healthIndicator.health();
6060
assertThat(health.getStatus()).isEqualTo(Status.DOWN);
6161
assertThat((String) health.getDetails().get("error")).contains("Connection failed");
62-
verify(influxDB).ping();
62+
verify(influxDb).ping();
6363
}
6464

6565
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/influx/InfluxDbCustomizer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public interface InfluxDbCustomizer {
3030

3131
/**
3232
* Customize the {@link InfluxDB}.
33-
* @param influxDB the influxDB instance to customize
33+
* @param influxDb the InfluxDB instance to customize
3434
*/
35-
void customize(InfluxDB influxDB);
35+
void customize(InfluxDB influxDb);
3636

3737
}

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/influx/InfluxDbAutoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ void influxDbWithCustomizer() {
8787
}
8888

8989
private int getReadTimeoutProperty(AssertableApplicationContext context) {
90-
InfluxDB influxDB = context.getBean(InfluxDB.class);
91-
Retrofit retrofit = (Retrofit) ReflectionTestUtils.getField(influxDB, "retrofit");
90+
InfluxDB influxDb = context.getBean(InfluxDB.class);
91+
Retrofit retrofit = (Retrofit) ReflectionTestUtils.getField(influxDb, "retrofit");
9292
OkHttpClient callFactory = (OkHttpClient) retrofit.callFactory();
9393
return callFactory.readTimeoutMillis();
9494
}

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,7 @@ The sensitive portion of the URI is identified using the format `<scheme>://<use
23492349
For example, for the property `myclient.uri=http://user1:password1@localhost:8081`, the resulting sanitized value is
23502350
`++http://user1:******@localhost:8081++`.
23512351

2352-
The defaults patterns used by the `env` and `configprops` endpoints can be replaced using configprop:management.endpoint.env.keys-to-sanitize[] and configprop:management.endpoint.configprops.keys-to-sanitize[] respectively.
2352+
The default patterns used by the `env` and `configprops` endpoints can be replaced using configprop:management.endpoint.env.keys-to-sanitize[] and configprop:management.endpoint.configprops.keys-to-sanitize[] respectively.
23532353
Alternatively, additional patterns can be configured using configprop:management.endpoint.env.additional-keys-to-sanitize[] and configprop:management.endpoint.configprops.additional-keys-to-sanitize[].
23542354

23552355

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -4929,7 +4929,7 @@ If the connection to InfluxDB requires a user and password, you can set the `spr
49294929
InfluxDB relies on OkHttp.
49304930
If you need to tune the http client `InfluxDB` uses behind the scenes, you can register an `InfluxDbOkHttpClientBuilderProvider` bean.
49314931

4932-
If you need more control over the configuration, consider registering a `InfluxDbCustomizer` bean.
4932+
If you need more control over the configuration, consider registering an `InfluxDbCustomizer` bean.
49334933

49344934

49354935

@@ -6255,7 +6255,7 @@ The thread pool uses one thread by default and its settings can be fine-tuned us
62556255
spring:
62566256
task:
62576257
scheduling:
6258-
thread-name-prefix: "scheduling-"
6258+
thread-name-prefix: "scheduling-"
62596259
pool:
62606260
size: 2
62616261
----

0 commit comments

Comments
 (0)