mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Polish
See gh-32215
This commit is contained in:
parent
cfdceba687
commit
2273191c03
@ -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);
|
||||
|
@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Moritz Halbritter
|
||||
*/
|
||||
class HealthEndpointWebExtensionRuntimeHintsTest {
|
||||
class HealthEndpointWebExtensionRuntimeHintsTests {
|
||||
|
||||
@Test
|
||||
void shouldRegisterHints() {
|
@ -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
|
||||
|
@ -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…
Reference in New Issue
Block a user