Skip to content

Commit fab15af

Browse files
committed
Merge branch '3.3.x' into 3.4.x
Closes gh-45594
2 parents 8ef423e + fd28508 commit fab15af

File tree

14 files changed

+17
-18
lines changed

14 files changed

+17
-18
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/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
@@ -50,7 +50,7 @@ void hashCodeAndEquals() throws Exception {
5050
DockerComposeFile c2 = DockerComposeFile.of(f1);
5151
DockerComposeFile c3 = DockerComposeFile.find(f1.getParentFile());
5252
DockerComposeFile c4 = DockerComposeFile.of(f2);
53-
assertThat(c1.hashCode()).isEqualTo(c2.hashCode()).isEqualTo(c3.hashCode());
53+
assertThat(c1).hasSameHashCodeAs(c2).hasSameHashCodeAs(c3);
5454
assertThat(c1).isEqualTo(c1).isEqualTo(c2).isEqualTo(c3).isNotEqualTo(c4);
5555
}
5656

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/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/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)