Skip to content

Commit 63adb82

Browse files
committed
Merge branch '3.5.x'
Closes gh-47055
2 parents ccbf678 + 85afbc6 commit 63adb82

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/test/ItemMetadataAssert.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public ItemMetadataAssert hasSourceType(Class<?> type) {
8383
return hasSourceType(type.getName());
8484
}
8585

86-
public ItemMetadataAssert hasSourceMethod(String type) {
87-
extracting(ItemMetadata::getSourceMethod).isEqualTo(type);
86+
public ItemMetadataAssert hasSourceMethod(String method) {
87+
extracting(ItemMetadata::getSourceMethod).isEqualTo(method);
8888
return this;
8989
}
9090

@@ -120,7 +120,7 @@ private ObjectAssert<ItemDeprecation> assertItemDeprecation() {
120120
}
121121

122122
private <T> ObjectAssert<T> extracting(Function<ItemMetadata, T> extractor) {
123-
return super.extracting(extractor, Assertions::assertThat);
123+
return extracting(extractor, Assertions::assertThat);
124124
}
125125

126126
@Override

core/spring-boot/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
{
3333
"name": "logging.console.enabled",
3434
"type": "java.lang.Boolean",
35-
"description": "Whether to enable console based logging",
35+
"description": "Whether to enable console-based logging.",
3636
"sourceType": "org.springframework.boot.context.logging.LoggingApplicationListener"
3737
},
3838
{

core/spring-boot/src/test/java/org/springframework/boot/logging/LoggingSystemPropertiesTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@ void shouldSetConsoleStructuredLogging() {
233233
}
234234

235235
@Test
236-
void shouldSetConsoleLevelThreshholdToOffWhenConsoleLoggingDisabled() {
236+
void shouldSetConsoleLevelThresholdToOffWhenConsoleLoggingDisabled() {
237237
new LoggingSystemProperties(new MockEnvironment().withProperty("logging.console.enabled", "false")).apply(null);
238238
assertThat(System.getProperty(LoggingSystemProperty.CONSOLE_THRESHOLD.getEnvironmentVariableName()))
239239
.isEqualTo("OFF");
240240
}
241241

242242
@Test
243-
void shouldNotChangeConsoleLevelThreshholdWhenConsoleLoggingEnabled() {
243+
void shouldNotChangeConsoleLevelThresholdWhenConsoleLoggingEnabled() {
244244
new LoggingSystemProperties(new MockEnvironment().withProperty("logging.console.enabled", "true")
245245
.withProperty("logging.threshold.console", "TRACE")).apply(null);
246246
assertThat(System.getProperty(LoggingSystemProperty.CONSOLE_THRESHOLD.getEnvironmentVariableName()))

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/features/logging.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Enabling the debug mode does _not_ configure your application to log all message
7171
Alternatively, you can enable a "`trace`" mode by starting your application with a `--trace` flag (or `trace=true` in your `application.properties`).
7272
Doing so enables trace logging for a selection of core loggers (embedded container, Hibernate schema generation, and the whole Spring portfolio).
7373

74-
If you wan to disable console based logging, you can set the configprop:logging.console.enabled[] property to `false`.
74+
If you want to disable console-based logging, you can set the configprop:logging.console.enabled[] property to `false`.
7575

7676

7777

module/spring-boot-http-client/src/main/java/org/springframework/boot/http/client/JdkClientHttpRequestFactoryBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public JdkClientHttpRequestFactoryBuilder withCustomizers(
6565
}
6666

6767
/**
68-
* Return a new {@link JdkClientHttpRequestFactoryBuilder} uses the given executor
69-
* with the underlying {@link java.net.http.HttpClient.Builder}.
68+
* Return a new {@link JdkClientHttpRequestFactoryBuilder} that uses the given
69+
* executor with the underlying {@link java.net.http.HttpClient.Builder}.
7070
* @param executor the executor to use
7171
* @return a new {@link JdkClientHttpRequestFactoryBuilder} instance
7272
* @since 4.0.0

module/spring-boot-http-client/src/main/java/org/springframework/boot/http/client/JdkHttpClientBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private JdkHttpClientBuilder(Consumer<HttpClient.Builder> customizer) {
5151
}
5252

5353
/**
54-
* Return a new {@link JdkHttpClientBuilder} uses the given executor with the
54+
* Return a new {@link JdkHttpClientBuilder} that uses the given executor with the
5555
* underlying {@link java.net.http.HttpClient.Builder}.
5656
* @param executor the executor to use
5757
* @return a new {@link JdkHttpClientBuilder} instance

module/spring-boot-http-client/src/main/java/org/springframework/boot/http/client/reactive/JdkClientHttpConnectorBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public JdkClientHttpConnectorBuilder withCustomizers(Collection<Consumer<JdkClie
6161
}
6262

6363
/**
64-
* Return a new {@link JdkClientHttpConnectorBuilder} uses the given executor with the
65-
* underlying {@link java.net.http.HttpClient.Builder}.
64+
* Return a new {@link JdkClientHttpConnectorBuilder} that uses the given executor
65+
* with the underlying {@link java.net.http.HttpClient.Builder}.
6666
* @param executor the executor to use
6767
* @return a new {@link JdkClientHttpConnectorBuilder} instance
6868
* @since 4.0.0

module/spring-boot-http-client/src/test/java/org/springframework/boot/http/client/autoconfigure/HttpClientAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void whenVirtualThreadsEnabledAndUsingJdkHttpClientUsesVirtualThreadExecutor() {
158158
.run((context) -> {
159159
ClientHttpRequestFactory factory = context.getBean(ClientHttpRequestFactoryBuilder.class).build();
160160
HttpClient httpClient = (HttpClient) ReflectionTestUtils.getField(factory, "httpClient");
161-
assertThat(httpClient.executor().get()).isInstanceOf(VirtualThreadTaskExecutor.class);
161+
assertThat(httpClient.executor()).containsInstanceOf(VirtualThreadTaskExecutor.class);
162162
});
163163
}
164164

module/spring-boot-http-client/src/test/java/org/springframework/boot/http/client/autoconfigure/reactive/ClientHttpConnectorAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void whenVirtualThreadsEnabledAndUsingJdkHttpClientUsesVirtualThreadExecutor() {
184184
ClientHttpConnector connector = context.getBean(ClientHttpConnectorBuilder.class).build();
185185
java.net.http.HttpClient httpClient = (java.net.http.HttpClient) ReflectionTestUtils.getField(connector,
186186
"httpClient");
187-
assertThat(httpClient.executor().get()).isInstanceOf(VirtualThreadTaskExecutor.class);
187+
assertThat(httpClient.executor()).containsInstanceOf(VirtualThreadTaskExecutor.class);
188188
});
189189
}
190190

0 commit comments

Comments
 (0)