Skip to content

Commit 4115863

Browse files
committed
Merge branch '3.0.x' into 3.1.x
Closes gh-37829
2 parents 4046148 + 781ac2e commit 4115863

File tree

12 files changed

+22
-24
lines changed

12 files changed

+22
-24
lines changed

Diff for: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/BraveAutoConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ BaggagePropagation.FactoryBuilder propagationFactoryBuilder(
212212
// There's a chicken-and-egg problem here: to create a builder, we need a
213213
// factory. But the CompositePropagationFactory needs data from the builder.
214214
// We create a throw-away builder with a throw-away factory, and then copy the
215-
// config to the real builder
215+
// config to the real builder.
216216
FactoryBuilder throwAwayBuilder = BaggagePropagation.newFactoryBuilder(createThrowAwayFactory());
217217
baggagePropagationCustomizers.orderedStream()
218218
.forEach((customizer) -> customizer.customize(throwAwayBuilder));

Diff for: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/CompositePropagationFactory.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ public TraceContext decorate(TraceContext context) {
8585
}
8686

8787
/**
88-
* Creates a new {@link CompositePropagationFactory}, which uses the given
89-
* {@code injectionTypes} for injection and {@code extractionTypes} for extraction.
88+
* Creates a new {@link CompositePropagationFactory}.
9089
* @param properties the propagation properties
9190
* @return the {@link CompositePropagationFactory}
9291
*/
@@ -95,8 +94,7 @@ static CompositePropagationFactory create(TracingProperties.Propagation properti
9594
}
9695

9796
/**
98-
* Creates a new {@link CompositePropagationFactory}, which uses the given
99-
* {@code injectionTypes} for injection and {@code extractionTypes} for extraction.
97+
* Creates a new {@link CompositePropagationFactory}.
10098
* @param properties the propagation properties
10199
* @param baggageManager the baggage manager to use, or {@code null}
102100
* @param localFields the local fields, or {@code null}

Diff for: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/codec/CodecProperties.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
import org.springframework.util.unit.DataSize;
2121

2222
/**
23-
* {@link ConfigurationProperties properties} for reactive codecs.
23+
* {@link ConfigurationProperties Properties} for reactive codecs.
2424
*
2525
* @author Brian Clozel
2626
* @since 2.2.1

Diff for: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/graphql/GraphQlProperties.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.springframework.boot.context.properties.ConfigurationProperties;
2323

2424
/**
25-
* {@link ConfigurationProperties properties} for Spring GraphQL.
25+
* {@link ConfigurationProperties Properties} for Spring GraphQL.
2626
*
2727
* @author Brian Clozel
2828
* @since 2.7.0

Diff for: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/hateoas/HateoasProperties.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
1919
import org.springframework.boot.context.properties.ConfigurationProperties;
2020

2121
/**
22-
* {@link ConfigurationProperties properties} for Spring HATEOAS.
22+
* {@link ConfigurationProperties Properties} for Spring HATEOAS.
2323
*
2424
* @author Phillip Webb
2525
* @author Andy Wilkinson

Diff for: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/rsocket/RSocketProperties.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
2525
import org.springframework.util.unit.DataSize;
2626

2727
/**
28-
* {@link ConfigurationProperties properties} for RSocket support.
28+
* {@link ConfigurationProperties Properties} for RSocket support.
2929
*
3030
* @author Brian Clozel
3131
* @author Chris Bono

Diff for: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxProperties.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.springframework.util.StringUtils;
2121

2222
/**
23-
* {@link ConfigurationProperties properties} for Spring WebFlux.
23+
* {@link ConfigurationProperties Properties} for Spring WebFlux.
2424
*
2525
* @author Brian Clozel
2626
* @author Vedran Pavic

Diff for: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcProperties.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.springframework.validation.DefaultMessageCodesResolver;
2828

2929
/**
30-
* {@link ConfigurationProperties properties} for Spring MVC.
30+
* {@link ConfigurationProperties Properties} for Spring MVC.
3131
*
3232
* @author Phillip Webb
3333
* @author Sébastien Deleuze

Diff for: spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/testing.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ If that is not what you want, you can disable transaction management for a test
593593

594594
include::code:MyTransactionalTests[]
595595

596-
If you prefer your test to run against a real database, you can use the `@AutoConfigureTestDatabase` annotation in the same way as for `DataJpaTest`.
596+
If you prefer your test to run against a real database, you can use the `@AutoConfigureTestDatabase` annotation in the same way as for `@DataJpaTest`.
597597
(See "<<features#features.testing.spring-boot-applications.autoconfigured-spring-data-jpa>>".)
598598

599599

@@ -611,23 +611,23 @@ By default, Data JDBC tests are transactional and roll back at the end of each t
611611
See the {spring-framework-docs}/testing.html#testcontext-tx-enabling-transactions[relevant section] in the Spring Framework Reference Documentation for more details.
612612
If that is not what you want, you can disable transaction management for a test or for the whole test class as <<features#features.testing.spring-boot-applications.autoconfigured-jdbc,shown in the JDBC example>>.
613613

614-
If you prefer your test to run against a real database, you can use the `@AutoConfigureTestDatabase` annotation in the same way as for `DataJpaTest`.
614+
If you prefer your test to run against a real database, you can use the `@AutoConfigureTestDatabase` annotation in the same way as for `@DataJpaTest`.
615615
(See "<<features#features.testing.spring-boot-applications.autoconfigured-spring-data-jpa>>".)
616616

617617

618618

619619
[[features.testing.spring-boot-applications.autoconfigured-spring-data-r2dbc]]
620620
==== Auto-configured Data R2DBC Tests
621621
`@DataR2dbcTest` is similar to `@DataJdbcTest` but is for tests that use Spring Data R2DBC repositories.
622-
By default, it configures an in-memory embedded database, a `R2dbcEntityTemplate`, and Spring Data R2DBC repositories.
622+
By default, it configures an in-memory embedded database, an `R2dbcEntityTemplate`, and Spring Data R2DBC repositories.
623623
Regular `@Component` and `@ConfigurationProperties` beans are not scanned when the `@DataR2dbcTest` annotation is used.
624624
`@EnableConfigurationProperties` can be used to include `@ConfigurationProperties` beans.
625625

626626
TIP: A list of the auto-configurations that are enabled by `@DataR2dbcTest` can be <<test-auto-configuration#appendix.test-auto-configuration,found in the appendix>>.
627627

628628
By default, Data R2DBC tests are not transactional.
629629

630-
If you prefer your test to run against a real database, you can use the `@AutoConfigureTestDatabase` annotation in the same way as for `DataJpaTest`.
630+
If you prefer your test to run against a real database, you can use the `@AutoConfigureTestDatabase` annotation in the same way as for `@DataJpaTest`.
631631
(See "<<features#features.testing.spring-boot-applications.autoconfigured-spring-data-jpa>>".)
632632

633633

Diff for: spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/servlet.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Most standard media types are supported out-of-the-box, but you can also define
250250
As of Spring Framework 5.3, Spring MVC supports two strategies for matching request paths to controllers.
251251
By default, Spring Boot uses the `PathPatternParser` strategy.
252252
`PathPatternParser` is an https://spring.io/blog/2020/06/30/url-matching-with-pathpattern-in-spring-mvc[optimized implementation] but comes with some restrictions compared to the `AntPathMatcher` strategy.
253-
`PathPatternParser` restricts usage of {spring-framework-docs}/web.html#mvc-ann-requestmapping-uri-templates[some path patterns variants].
253+
`PathPatternParser` restricts usage of {spring-framework-docs}/web.html#mvc-ann-requestmapping-uri-templates[some path pattern variants].
254254
It is also incompatible with configuring the `DispatcherServlet` with a path prefix (configprop:spring.mvc.servlet.path[]).
255255

256256
The strategy can be configured using the configprop:spring.mvc.pathmatch.matching-strategy[] configuration property, as shown in the following example:

Diff for: spring-boot-project/spring-boot-tools/spring-boot-cli/src/test/java/org/springframework/boot/cli/command/init/InitCommandTests.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void listServiceCapabilitiesV2() throws Exception {
8080

8181
@Test
8282
void generateProject() throws Exception {
83-
String fileName = UUID.randomUUID().toString() + ".zip";
83+
String fileName = UUID.randomUUID() + ".zip";
8484
File file = new File(fileName);
8585
assertThat(file).as("file should not exist").doesNotExist();
8686
MockHttpProjectGenerationRequest request = new MockHttpProjectGenerationRequest("application/zip", fileName);
@@ -175,7 +175,7 @@ void generateProjectFileSavedAsFileByDefault() throws Exception {
175175

176176
@Test
177177
void generateProjectAndExtractUnsupportedArchive(@TempDir File tempDir) throws Exception {
178-
String fileName = UUID.randomUUID().toString() + ".zip";
178+
String fileName = UUID.randomUUID() + ".zip";
179179
File file = new File(fileName);
180180
assertThat(file).as("file should not exist").doesNotExist();
181181
try {
@@ -193,7 +193,7 @@ void generateProjectAndExtractUnsupportedArchive(@TempDir File tempDir) throws E
193193

194194
@Test
195195
void generateProjectAndExtractUnknownContentType(@TempDir File tempDir) {
196-
String fileName = UUID.randomUUID().toString() + ".zip";
196+
String fileName = UUID.randomUUID() + ".zip";
197197
File file = new File(fileName);
198198
assertThat(file).as("file should not exist").doesNotExist();
199199
try {

Diff for: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/DependencyFilterMojoTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -137,7 +137,7 @@ private static Artifact createArtifact(String groupId, String artifactId, String
137137
}
138138

139139
private static File createArtifactFile(String jarType) {
140-
Path jarPath = temp.resolve(UUID.randomUUID().toString() + ".jar");
140+
Path jarPath = temp.resolve(UUID.randomUUID() + ".jar");
141141
Manifest manifest = new Manifest();
142142
manifest.getMainAttributes().putValue("Manifest-Version", "1.0");
143143
if (jarType != null) {

0 commit comments

Comments
 (0)