Skip to content

Commit

Permalink
Merge pull request #32215 from izeye
Browse files Browse the repository at this point in the history
* pr/32215:
  Polish

Closes gh-32215
  • Loading branch information
snicoll committed Sep 7, 2022
2 parents cfdceba + 2273191 commit 86e2edf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ private List<String> normalize(List<String> lines, Pattern pattern, String repla
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*
* @author Moritz Halbritter
*/
class HealthEndpointWebExtensionRuntimeHintsTest {
class HealthEndpointWebExtensionRuntimeHintsTests {

@Test
void shouldRegisterHints() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ public void to(Consumer<T> consumer) {
}

/**
* 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
Expand Down

0 comments on commit 86e2edf

Please sign in to comment.