From 2273191c03cd9983ced7d5efb2af8682c5ef250c Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Fri, 2 Sep 2022 01:01:48 +0900 Subject: [PATCH] Polish See gh-32215 --- .../springframework/boot/build/docs/ApplicationRunner.java | 2 +- ....java => HealthEndpointWebExtensionRuntimeHintsTests.java} | 2 +- .../autoconfigure/template/TemplateRuntimeHintsTests.java | 4 ++-- .../boot/context/properties/PropertyMapper.java | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/{HealthEndpointWebExtensionRuntimeHintsTest.java => HealthEndpointWebExtensionRuntimeHintsTests.java} (96%) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java b/buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java index b66a60edfb..1dbc7c14c7 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java @@ -185,7 +185,7 @@ public class ApplicationRunner extends DefaultTask { List normalizedLines = new ArrayList<>(); for (String line : lines) { Matcher matcher = pattern.matcher(line); - StringBuffer transformed = new StringBuffer(); + StringBuilder transformed = new StringBuilder(); while (matcher.find()) { matched = true; matcher.appendReplacement(transformed, replacement); diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/HealthEndpointWebExtensionRuntimeHintsTest.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/HealthEndpointWebExtensionRuntimeHintsTests.java similarity index 96% rename from spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/HealthEndpointWebExtensionRuntimeHintsTest.java rename to spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/HealthEndpointWebExtensionRuntimeHintsTests.java index 7597432b24..9415240096 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/HealthEndpointWebExtensionRuntimeHintsTest.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/HealthEndpointWebExtensionRuntimeHintsTests.java @@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat; * * @author Moritz Halbritter */ -class HealthEndpointWebExtensionRuntimeHintsTest { +class HealthEndpointWebExtensionRuntimeHintsTests { @Test void shouldRegisterHints() { diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/template/TemplateRuntimeHintsTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/template/TemplateRuntimeHintsTests.java index b4e95da809..c98dd13f31 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/template/TemplateRuntimeHintsTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/template/TemplateRuntimeHintsTests.java @@ -30,13 +30,13 @@ import org.springframework.core.io.ClassPathResource; import static org.assertj.core.api.Assertions.assertThat; /** - * Tests for {@link TemplateRuntimeHints}.$ + * Tests for {@link TemplateRuntimeHints}. * * @author Stephane Nicoll */ class TemplateRuntimeHintsTests { - public static final Predicate TEST_PREDICATE = RuntimeHintsPredicates.resource() + private static final Predicate TEST_PREDICATE = RuntimeHintsPredicates.resource() .forResource("templates/something/hello.html"); @Test diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java index e18731e46b..15e5e5ac75 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java @@ -295,8 +295,8 @@ public final class PropertyMapper { } /** - * Complete the mapping for any non-filtered value by apply the given function to - * an existing instance and returning a new one. For filtered values, the + * Complete the mapping for any non-filtered value by applying the given function + * to an existing instance and returning a new one. For filtered values, the * {@code instance} parameter is returned unchanged. The method is designed to be * used with immutable objects. * @param the result type