Skip to content

Commit 3d732e8

Browse files
committed
Merge branch '2.0.x'
2 parents e0ee4f2 + ca57e58 commit 3d732e8

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/cache/CacheMeterBinderProvidersConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.springframework.context.annotation.Configuration;
3535

3636
/**
37-
* {@link Configuration Auto-configuration} for {@link CacheMeterBinderProvider} beans.
37+
* Configure {@link CacheMeterBinderProvider} beans.
3838
*
3939
* @author Stephane Nicoll
4040
*/

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,11 @@ private Map<String, Object> getConfigurationPropertiesBeans(
152152
* @param prefix the prefix
153153
* @return the serialized instance
154154
*/
155+
@SuppressWarnings("unchecked")
155156
private Map<String, Object> safeSerialize(ObjectMapper mapper, Object bean,
156157
String prefix) {
157158
try {
158-
@SuppressWarnings("unchecked")
159-
Map<String, Object> result = new HashMap<>(
160-
mapper.convertValue(bean, Map.class));
161-
return result;
159+
return new HashMap<>(mapper.convertValue(bean, Map.class));
162160
}
163161
catch (Exception ex) {
164162
return new HashMap<>(Collections.singletonMap("error",

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/servlet/SecurityRequestMatcherProviderAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class SecurityRequestMatcherProviderAutoConfigurationTests {
4040
.withUserConfiguration(TestConfiguration.class);
4141

4242
@Test
43-
public void registersMvcRequestMatcherProviderForIfMvcPresent() {
43+
public void registersMvcRequestMatcherProviderIfMvcPresent() {
4444
this.contextRunner.run((context) -> assertThat(context)
4545
.hasSingleBean(MvcRequestMatcherProvider.class));
4646
}

spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ Consider the following JSON request body:
555555
}
556556
----
557557

558-
This can be used to invoke a write operation that takes a `String test` and `int counter`
558+
This can be used to invoke a write operation that takes `String name` and `int counter`
559559
parameters.
560560

561561
TIP: Because endpoints are technology agnostic, only simple types can be specified in the

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6723,7 +6723,7 @@ mapper, which can be one of the following libraries:
67236723
* `Gson`
67246724
* `Jsonb`
67256725

6726-
TIP: A list of the auto-configuration that is enabled by `@JsonTest` can be
6726+
TIP: A list of the auto-configurations that are enabled by `@JsonTest` can be
67276727
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
67286728

67296729
If you need to configure elements of the auto-configuration, you can use the
@@ -6906,7 +6906,7 @@ auto-configures the Spring WebFlux infrastructure and limits scanned beans to
69066906
`WebFluxConfigurer`. Regular `@Component` beans are not scanned when the `@WebFluxTest`
69076907
annotation is used.
69086908

6909-
TIP: A list of the auto-configuration that is enabled by `@WebFluxTest` can be
6909+
TIP: A list of the auto-configurations that are enabled by `@WebFluxTest` can be
69106910
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
69116911

69126912
TIP: If you need to register extra components, such as Jackson `Module`, you can import
@@ -7066,7 +7066,7 @@ following example:
70667066
`DataSource`. By default, it configures an in-memory embedded database and a
70677067
`JdbcTemplate`. Regular `@Component` beans are not loaded into the `ApplicationContext`.
70687068

7069-
TIP: A list of the auto-configuration that is enabled by `@JdbcTest` can be
7069+
TIP: A list of the auto-configurations that are enabled by `@JdbcTest` can be
70707070
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
70717071

70727072
By default, JDBC tests are transactional and roll back at the end of each test. See the
@@ -7107,7 +7107,7 @@ you can use `@AutoConfigureTestDatabase` to override those settings. (For more a
71077107
jOOQ with Spring Boot, see "<<boot-features-jooq>>", earlier in this chapter.) Regular
71087108
`@Component` beans are not loaded into the `ApplicationContext`.
71097109

7110-
TIP: A list of the auto-configuration that is enabled by `@JooqTest` can be
7110+
TIP: A list of the auto-configurations that are enabled by `@JooqTest` can be
71117111
<<appendix-test-auto-configuration#test-auto-configuration,found in the appendix>>.
71127112

71137113
`@JooqTest` configures a `DSLContext`. Regular `@Component` beans are not loaded into the
@@ -7492,7 +7492,7 @@ include::{code-examples}/test/autoconfigure/restdocs/restassured/AdvancedConfigu
74927492
==== Additional Auto-configuration and Slicing
74937493
Each slice provides one or more `@AutoConfigure...` annotations that namely defines the
74947494
auto-configurations that should be included as part of a slice. Additional
7495-
auto-configurations can be added by creating a custom `@AutoConfigure` annotation or
7495+
auto-configurations can be added by creating a custom `@AutoConfigure...` annotation or
74967496
simply by adding `@ImportAutoConfiguration` to the test as shown in the following example:
74977497

74987498
[source,java,indent=0]

0 commit comments

Comments
 (0)