See gh-32215
This commit is contained in:
Johnny Lim 2022-09-02 01:01:48 +09:00 committed by Stephane Nicoll
parent cfdceba687
commit 2273191c03
4 changed files with 6 additions and 6 deletions

View File

@ -185,7 +185,7 @@ public class ApplicationRunner extends DefaultTask {
List<String> normalizedLines = new ArrayList<>(); List<String> normalizedLines = new ArrayList<>();
for (String line : lines) { for (String line : lines) {
Matcher matcher = pattern.matcher(line); Matcher matcher = pattern.matcher(line);
StringBuffer transformed = new StringBuffer(); StringBuilder transformed = new StringBuilder();
while (matcher.find()) { while (matcher.find()) {
matched = true; matched = true;
matcher.appendReplacement(transformed, replacement); matcher.appendReplacement(transformed, replacement);

View File

@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* *
* @author Moritz Halbritter * @author Moritz Halbritter
*/ */
class HealthEndpointWebExtensionRuntimeHintsTest { class HealthEndpointWebExtensionRuntimeHintsTests {
@Test @Test
void shouldRegisterHints() { void shouldRegisterHints() {

View File

@ -30,13 +30,13 @@ import org.springframework.core.io.ClassPathResource;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
/** /**
* Tests for {@link TemplateRuntimeHints}.$ * Tests for {@link TemplateRuntimeHints}.
* *
* @author Stephane Nicoll * @author Stephane Nicoll
*/ */
class TemplateRuntimeHintsTests { 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"); .forResource("templates/something/hello.html");
@Test @Test

View File

@ -295,8 +295,8 @@ public final class PropertyMapper {
} }
/** /**
* Complete the mapping for any non-filtered value by apply the given function to * Complete the mapping for any non-filtered value by applying the given function
* an existing instance and returning a new one. For filtered values, the * 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 * {@code instance} parameter is returned unchanged. The method is designed to be
* used with immutable objects. * used with immutable objects.
* @param <R> the result type * @param <R> the result type