Skip to content

Commit a8e37b5

Browse files
committed
Merge branch '2.7.x' into 3.0.x
Closes gh-37142
2 parents c749fcb + d071ec8 commit a8e37b5

File tree

8 files changed

+11
-17
lines changed

8 files changed

+11
-17
lines changed

Diff for: spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/AbstractReactiveHealthIndicator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private Mono<Health> handleFailure(Throwable ex) {
9999
}
100100

101101
/**
102-
* Actual health check logic. If an error occurs in the pipeline it will be handled
102+
* Actual health check logic. If an error occurs in the pipeline, it will be handled
103103
* automatically.
104104
* @param builder the {@link Health.Builder} to report health status and details
105105
* @return a {@link Mono} that provides the {@link Health}

Diff for: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/filter/AnnotationCustomizableTypeExcludeFilter.java

+2-3
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.
@@ -119,8 +119,7 @@ public boolean equals(Object obj) {
119119
return false;
120120
}
121121
AnnotationCustomizableTypeExcludeFilter other = (AnnotationCustomizableTypeExcludeFilter) obj;
122-
boolean result = true;
123-
result = result && hasAnnotation() == other.hasAnnotation();
122+
boolean result = hasAnnotation() == other.hasAnnotation();
124123
for (FilterType filterType : FilterType.values()) {
125124
result &= ObjectUtils.nullSafeEquals(getFilters(filterType), other.getFilters(filterType));
126125
}

Diff for: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jdbc/AutoConfigureTestDatabase.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.
@@ -58,7 +58,7 @@
5858

5959
/**
6060
* The type of connection to be established when {@link #replace() replacing} the
61-
* DataSource. By default will attempt to detect the connection based on the
61+
* DataSource. By default, will attempt to detect the connection based on the
6262
* classpath.
6363
* @return the type of connection to use
6464
*/

Diff for: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jdbc/TestDatabaseAutoConfiguration.java

-5
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,6 @@ public Class<?> getObjectType() {
163163
return EmbeddedDatabase.class;
164164
}
165165

166-
@Override
167-
public boolean isSingleton() {
168-
return true;
169-
}
170-
171166
}
172167

173168
static class EmbeddedDataSourceFactory {

Diff for: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/AnnotationsPropertySource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void collectProperties(String prefix, SkipPropertyMapping skip, MergedAn
9191
return;
9292
}
9393
Optional<Object> value = annotation.getValue(attribute.getName());
94-
if (!value.isPresent()) {
94+
if (value.isEmpty()) {
9595
return;
9696
}
9797
if (skip == SkipPropertyMapping.ON_DEFAULT_VALUE) {

Diff for: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/PropertyMappingContextCustomizer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private Class<?> getRoot(MergedAnnotation<?> annotation) {
9898
private String getAnnotationsDescription(Set<Class<?>> annotations) {
9999
StringBuilder result = new StringBuilder();
100100
for (Class<?> annotation : annotations) {
101-
if (result.length() != 0) {
101+
if (!result.isEmpty()) {
102102
result.append(", ");
103103
}
104104
result.append('@').append(ClassUtils.getShortName(annotation));

Diff for: spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebDriverScope.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.
@@ -107,7 +107,7 @@ boolean reset() {
107107

108108
/**
109109
* Register this scope with the specified context and reassign appropriate bean
110-
* definitions to used it.
110+
* definitions to use it.
111111
* @param context the application context
112112
*/
113113
static void registerWith(ConfigurableApplicationContext context) {

Diff for: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ protected ConfigurableApplicationContext createApplicationContext() {
568568
}
569569

570570
/**
571-
* Apply any relevant post processing the {@link ApplicationContext}. Subclasses can
572-
* apply additional processing as required.
571+
* Apply any relevant post-processing to the {@link ApplicationContext}. Subclasses
572+
* can apply additional processing as required.
573573
* @param context the application context
574574
*/
575575
protected void postProcessApplicationContext(ConfigurableApplicationContext context) {

0 commit comments

Comments
 (0)