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

0 commit comments

Comments
 (0)