parent
cfdceba687
commit
2273191c03
|
@ -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);
|
||||||
|
|
|
@ -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() {
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue