Skip to content

Commit 921b9fd

Browse files
committed
Merge branch '3.4.x'
Closes gh-45595
2 parents ce84f08 + fab15af commit 921b9fd

File tree

18 files changed

+24
-25
lines changed

18 files changed

+24
-25
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/docs/antora/modules/api/pages/rest/actuator/metrics.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
The `metrics` endpoint provides access to application metrics to diagnose the metrics the application has recorded.
55
This endpoint should not be "scraped" or used as a metrics backend in production.
6-
Its purpose is to show the currently registered metrics so users can see what metrics are available, what their current values are, and if triggering certain operations cause any change in certain values.
6+
Its purpose is to show the currently registered metrics so users can see what metrics are available, what their current values are, and if triggering certain operations causes any change in certain values.
77
If you want to diagnose your applications through the metrics they collect, you should use an xref:reference:actuator/metrics.adoc[external metrics backend].
88
In this case, the `metrics` endpoint can still be useful.
99

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/client/NotReactiveWebApplicationOrVirtualThreadsExecutorEnabledCondition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private static final class NotReactiveWebApplication {
4343

4444
@ConditionalOnThreading(Threading.VIRTUAL)
4545
@ConditionalOnBean(name = TaskExecutionAutoConfiguration.APPLICATION_TASK_EXECUTOR_BEAN_NAME)
46-
private static final class VirtualThreadsEnabled {
46+
private static final class VirtualThreadsExecutorEnabled {
4747

4848
}
4949

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jersey/JerseyAutoConfigurationTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,10 @@ void whenJacksonJaxbModuleIsNotAvailableTheObjectMapperCustomizationBacksOff() {
113113
.stream()
114114
.filter(JakartaXmlBindAnnotationIntrospector.class::isInstance)).isEmpty();
115115
});
116-
117116
}
118117

119118
@Test
120-
void webApplicationIntializerDisablesJerseysWebApplicationInitializer() throws ServletException {
119+
void webApplicationInitializerDisablesJerseyWebApplicationInitializer() throws ServletException {
121120
ServletContext context = new MockServletContext();
122121
new JerseyWebApplicationInitializer().onStartup(context);
123122
assertThat(context.getInitParameter("contextConfigLocation")).isEqualTo("<NONE>");

spring-boot-project/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/core/DockerCliInspectResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ record ExposedPort() {
5353
}
5454

5555
/**
56-
* A container's resources (cgroups config, ulimits, etc).
56+
* A container's resources (cgroups config, ulimits, etc.).
5757
*
5858
* @param networkMode the network mode to use for this container
5959
*/

spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/core/DockerComposeFileTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void hashCodeAndEquals() throws Exception {
5151
DockerComposeFile c2 = DockerComposeFile.of(f1);
5252
DockerComposeFile c3 = DockerComposeFile.find(f1.getParentFile());
5353
DockerComposeFile c4 = DockerComposeFile.of(f2);
54-
assertThat(c1.hashCode()).isEqualTo(c2.hashCode()).isEqualTo(c3.hashCode());
54+
assertThat(c1).hasSameHashCodeAs(c2).hasSameHashCodeAs(c3);
5555
assertThat(c1).isEqualTo(c1).isEqualTo(c2).isEqualTo(c3).isNotEqualTo(c4);
5656
}
5757

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,15 @@ Imports may be specified as _fixed_ or _import relative_ locations.
305305
A fixed location always resolves to the same underlying resource, regardless of where the configprop:spring.config.import[] property is declared.
306306
An import relative location resolves relative to the file that declares the configprop:spring.config.import[] property.
307307

308-
A location starting with a forward slash (`/`) or a URL style prefix (`file:`, `classpath:`, etc) is considered fixed.
308+
A location starting with a forward slash (`/`) or a URL style prefix (`file:`, `classpath:`, etc.) is considered fixed.
309309
All other locations are considered import relative.
310310

311311
NOTE: `optional:` prefixes are not considered when determining if a location is fixed or import relative.
312312

313313
As an example, say we have a `/demo` directory containing our `application.jar` file.
314314
We might add a `/demo/application.properties` file with the following content:
315315

316-
[,properties]
316+
[source,properties]
317317
----
318318
spring.config.import=optional:core/core.properties
319319
----
@@ -322,7 +322,7 @@ This is an import relative location and so will attempt to load the file `/demo/
322322

323323
If `/demo/core/core.properties` has the following content:
324324

325-
[,properties]
325+
[source,properties]
326326
----
327327
spring.config.import=optional:extra/extra.properties
328328
----

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/task-execution-and-scheduling.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The auto-configured javadoc:org.springframework.core.task.AsyncTaskExecutor[] is
1313
- Support for blocking execution in Spring WebFlux.
1414
- Utilized for inbound and outbound message channels in Spring WebSocket.
1515
- Bootstrap executor for JPA, based on the bootstrap mode of JPA repositories.
16-
- Bootstrap Executor for {url-spring-framework-docs}/core/beans/java/composing-configuration-classes.html#beans-java-startup-background[background initialization] of beans in the `ApplicationContext`.
16+
- Bootstrap executor for {url-spring-framework-docs}/core/beans/java/composing-configuration-classes.html#beans-java-startup-background[background initialization] of beans in the `ApplicationContext`.
1717

1818
While this approach works in most scenarios, Spring Boot allows you to override the auto-configured javadoc:org.springframework.core.task.AsyncTaskExecutor[].
1919
By default, when a custom javadoc:java.util.concurrent.Executor[] bean is registered, the auto-configured javadoc:org.springframework.core.task.AsyncTaskExecutor[] backs off, and the custom javadoc:java.util.concurrent.Executor[] is used for regular task execution (via javadoc:org.springframework.scheduling.annotation.EnableAsync[format=annotation]).
@@ -83,7 +83,7 @@ These integrations include:
8383
- Spring WebFlux's blocking execution support.
8484
- Utilized for inbound and outbound message channels in Spring WebSocket.
8585
- Bootstrap executor for JPA, based on the bootstrap mode of JPA repositories.
86-
- Bootstrap Executor for {url-spring-framework-docs}/core/beans/java/composing-configuration-classes.html#beans-java-startup-background[background initialization] of beans in the `ApplicationContext`, unless a bean named `bootstrapExecutor` is defined.
86+
- Bootstrap executor for {url-spring-framework-docs}/core/beans/java/composing-configuration-classes.html#beans-java-startup-background[background initialization] of beans in the `ApplicationContext`, unless a bean named `bootstrapExecutor` is defined.
8787

8888
[TIP]
8989
====

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/packaging/native-image/introducing-graalvm-native-images.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ When these restrictions are in place, it becomes possible for Spring to perform
5555
A Spring AOT processed application will typically generate:
5656

5757
* Java source code
58-
* Bytecode (for dynamic proxies etc)
58+
* Bytecode (for dynamic proxies, etc.)
5959
* GraalVM JSON hint files in `+META-INF/native-image/{groupId}/{artifactId}/+`:
6060
- Resource hints (`resource-config.json`)
6161
- Reflection hints (`reflect-config.json`)

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/context/ImportsContextCustomizerFactoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ void contextCustomizerEqualsAndHashCodeConsidersComponentScan() {
8383
.createContextCustomizer(TestWithImportAndComponentScanOfSomePackage.class, null);
8484
ContextCustomizer customizer3 = this.factory
8585
.createContextCustomizer(TestWithImportAndComponentScanOfAnotherPackage.class, null);
86-
assertThat(customizer1.hashCode()).isEqualTo(customizer2.hashCode());
8786
assertThat(customizer1).isEqualTo(customizer2);
88-
assertThat(customizer3.hashCode()).isNotEqualTo(customizer2.hashCode()).isNotEqualTo(customizer1.hashCode());
87+
assertThat(customizer1).hasSameHashCodeAs(customizer2);
8988
assertThat(customizer3).isNotEqualTo(customizer2).isNotEqualTo(customizer1);
89+
assertThat(customizer3).doesNotHaveSameHashCodeAs(customizer2).doesNotHaveSameHashCodeAs(customizer1);
9090
}
9191

9292
@Test

spring-boot-project/spring-boot-testcontainers/src/test/java/org/springframework/boot/testcontainers/service/connection/FieldOriginTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void equalsAndHashCode() {
4545
Origin o2 = new FieldOrigin(ReflectionUtils.findField(Fields.class, "one"));
4646
Origin o3 = new FieldOrigin(ReflectionUtils.findField(Fields.class, "two"));
4747
assertThat(o1).isEqualTo(o1).isEqualTo(o2).isNotEqualTo(o3);
48-
assertThat(o1.hashCode()).isEqualTo(o2.hashCode());
48+
assertThat(o1).hasSameHashCodeAs(o2);
4949
}
5050

5151
@Test

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/nio/file/NestedFileSystemTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ void equalsAndHashCode() {
184184
NestedFileSystem f2 = new NestedFileSystem(this.provider, jp1);
185185
NestedFileSystem f3 = new NestedFileSystem(this.provider, jp2);
186186
NestedFileSystem f4 = new NestedFileSystem(this.provider, jp3);
187-
assertThat(f1.hashCode()).isEqualTo(f2.hashCode());
188187
assertThat(f1).isEqualTo(f1).isEqualTo(f2).isEqualTo(f3).isNotEqualTo(f4);
188+
assertThat(f1).hasSameHashCodeAs(f2);
189189
}
190190

191191
}

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/nio/file/NestedPathTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ void hashCodeAndEquals() {
208208
NestedPath p2 = new NestedPath(this.fileSystem, "a.jar");
209209
NestedPath p3 = new NestedPath(this.fileSystem, "c.jar");
210210
NestedPath p4 = new NestedPath(fs2, "c.jar");
211-
assertThat(p1.hashCode()).isEqualTo(p2.hashCode());
211+
assertThat(p1).hasSameHashCodeAs(p2);
212212
assertThat(p1).isEqualTo(p1).isEqualTo(p2).isNotEqualTo(p3).isNotEqualTo(p4);
213213
}
214214

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/http/client/ClientHttpRequestFactoryBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static <T extends ClientHttpRequestFactory> ClientHttpRequestFactoryBuilder<T> o
185185

186186
/**
187187
* Detect the most suitable {@link ClientHttpRequestFactoryBuilder} based on the
188-
* classpath. The methods favors builders in the following order:
188+
* classpath. The method favors builders in the following order:
189189
* <ol>
190190
* <li>{@link #httpComponents()}</li>
191191
* <li>{@link #jetty()}</li>
@@ -201,7 +201,7 @@ static ClientHttpRequestFactoryBuilder<? extends ClientHttpRequestFactory> detec
201201

202202
/**
203203
* Detect the most suitable {@link ClientHttpRequestFactoryBuilder} based on the
204-
* classpath. The methods favors builders in the following order:
204+
* classpath. The method favors builders in the following order:
205205
* <ol>
206206
* <li>{@link #httpComponents()}</li>
207207
* <li>{@link #jetty()}</li>

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/http/client/reactive/ClientHttpConnectorBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static <T extends ClientHttpConnector> ClientHttpConnectorBuilder<T> of(Class<T>
157157

158158
/**
159159
* Detect the most suitable {@link ClientHttpConnectorBuilder} based on the classpath.
160-
* The methods favors builders in the following order:
160+
* The method favors builders in the following order:
161161
* <ol>
162162
* <li>{@link #reactor()}</li>
163163
* <li>{@link #jetty()}</li>
@@ -172,7 +172,7 @@ static ClientHttpConnectorBuilder<? extends ClientHttpConnector> detect() {
172172

173173
/**
174174
* Detect the most suitable {@link ClientHttpConnectorBuilder} based on the classpath.
175-
* The methods favors builders in the following order:
175+
* The method favors builders in the following order:
176176
* <ol>
177177
* <li>{@link #reactor()}</li>
178178
* <li>{@link #jetty()}</li>

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/StandardConfigDataResourceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ void equalsAndHashCodeWhenSameUnderlyingResource(@ResourcePath("test.resource")
8787
FileUrlResource fileResource = new FileUrlResource(classResource.getURL());
8888
ConfigDataResource classDataResource = new StandardConfigDataResource(this.reference, classResource);
8989
ConfigDataResource fileDataResource = new StandardConfigDataResource(this.reference, fileResource);
90-
assertThat(classDataResource.hashCode()).isEqualTo(fileDataResource.hashCode());
9190
assertThat(classDataResource).isEqualTo(fileDataResource);
91+
assertThat(classDataResource).hasSameHashCodeAs(fileDataResource);
9292
}
9393
finally {
9494
Thread.currentThread().setContextClassLoader(contextClassLoader);

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/ssl/pem/PemContentTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ void equalsAndHashCode() {
8686
PemContent c1 = PemContent.of("aaa");
8787
PemContent c2 = PemContent.of("aaa");
8888
PemContent c3 = PemContent.of("bbb");
89-
assertThat(c1.hashCode()).isEqualTo(c2.hashCode());
9089
assertThat(c1).isEqualTo(c1).isEqualTo(c2).isNotEqualTo(c3);
90+
assertThat(c1).hasSameHashCodeAs(c2);
9191
}
9292

9393
@Test

spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/context/properties/bind/KotlinDefaultBindConstructorProviderTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class KotlinDefaultBindConstructorProviderTests {
6262
}
6363

6464
@Test
65-
fun `type with no param primary constructor and secondary params constructor should not use constructor binding`() {
65+
fun `type with no param primary constructor and params secondary constructor should not use constructor binding`() {
6666
val bindConstructor = this.constructorProvider.getBindConstructor(NoParamPrimaryWithParamsSecondaryProperties::class.java, false)
6767
assertThat(bindConstructor).isNull()
6868
}

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-cassandra/src/dockerTest/resources/ssl/cassandra.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ ssl_storage_port: 7001
604604
#
605605
# Leaving it blank leaves it up to InetAddress.getLocalHost(). This
606606
# will always do the Right Thing _if_ the node is properly configured
607-
# (hostname, name resolution, etc), and the Right Thing is to use the
607+
# (hostname, name resolution, etc.), and the Right Thing is to use the
608608
# address associated with the hostname (it might not be).
609609
#
610610
# Setting listen_address to 0.0.0.0 is always wrong.

0 commit comments

Comments
 (0)