Skip to content

Commit 6d9ce8a

Browse files
hakan-krgnwilkinsona
authored andcommitted
Polish code and javadoc
See gh-37112
1 parent 0f6342a commit 6d9ce8a

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

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}

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -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
}

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jdbc/AutoConfigureTestDatabase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -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
*/

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
@@ -159,11 +159,6 @@ public Class<?> getObjectType() {
159159
return EmbeddedDatabase.class;
160160
}
161161

162-
@Override
163-
public boolean isSingleton() {
164-
return true;
165-
}
166-
167162
}
168163

169164
static class EmbeddedDataSourceFactory {

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebDriverScope.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ boolean reset() {
103103

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ protected ConfigurableApplicationContext createApplicationContext() {
567567
}
568568

569569
/**
570-
* Apply any relevant post processing the {@link ApplicationContext}. Subclasses can
570+
* Apply any relevant post-processing the {@link ApplicationContext}. Subclasses can
571571
* apply additional processing as required.
572572
* @param context the application context
573573
*/

0 commit comments

Comments
 (0)