Browse Source

Polish

See gh-32215
pull/32224/head
Johnny Lim 4 years ago committed by Stephane Nicoll
parent
commit
2273191c03
  1. 2
      buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java
  2. 2
      spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/HealthEndpointWebExtensionRuntimeHintsTests.java
  3. 4
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/template/TemplateRuntimeHintsTests.java
  4. 4
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java

2
buildSrc/src/main/java/org/springframework/boot/build/docs/ApplicationRunner.java

@ -185,7 +185,7 @@ public class ApplicationRunner extends DefaultTask { @@ -185,7 +185,7 @@ public class ApplicationRunner extends DefaultTask {
List<String> 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);

2
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/HealthEndpointWebExtensionRuntimeHintsTest.java → 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; @@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*
* @author Moritz Halbritter
*/
class HealthEndpointWebExtensionRuntimeHintsTest {
class HealthEndpointWebExtensionRuntimeHintsTests {
@Test
void shouldRegisterHints() {

4
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; @@ -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<RuntimeHints> TEST_PREDICATE = RuntimeHintsPredicates.resource()
private static final Predicate<RuntimeHints> TEST_PREDICATE = RuntimeHintsPredicates.resource()
.forResource("templates/something/hello.html");
@Test

4
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java

@ -295,8 +295,8 @@ public final class PropertyMapper { @@ -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 <R> the result type

Loading…
Cancel
Save