Skip to content

Commit

Permalink
Improve text and minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie authored and Stephan202 committed Sep 28, 2022
1 parent dc2cc13 commit 73c5cb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

import static com.google.common.base.Predicates.containsPattern;
import static com.google.common.collect.ImmutableSortedMap.toImmutableSortedMap;
import static com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode.TEXT_MATCH;
import static java.util.Comparator.naturalOrder;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.junit.jupiter.params.provider.Arguments.arguments;

import com.google.common.collect.ImmutableList;
import com.google.errorprone.BugCheckerRefactoringTestHelper;
import com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode;
import com.google.errorprone.CompilationTestHelper;
import java.util.regex.Pattern;
import java.util.stream.Stream;
Expand Down Expand Up @@ -107,8 +107,8 @@ private static Stream<Arguments> reportedSeverityTestCases() {
* Verifies that the bug checker flags the refactoring opportunities with the appropriate severity
* level.
*
* @implNote This test setup is rather awkward, because {@link CompilationTestHelper} does not
* enable direct assertions against the severity of collected diagnostics output.
* @implNote This test setup is rather cumbersome, because the {@link CompilationTestHelper} does
* not enable direct assertions against the severity of collected diagnostics output.
*/
@MethodSource("reportedSeverityTestCases")
@ParameterizedTest
Expand Down Expand Up @@ -175,7 +175,7 @@ void replacement() {
" boolean b4 = \"qux\".length() == 3;",
" }",
"}")
.doTest(TEXT_MATCH);
.doTest(TestMode.TEXT_MATCH);
}

@Test
Expand All @@ -201,6 +201,6 @@ void restrictedReplacement() {
" boolean b4 = \"qux\".toCharArray().length == 3;",
" }",
"}")
.doTest(TEXT_MATCH);
.doTest(TestMode.TEXT_MATCH);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* A collection annotations that may be placed on Refaster template classes and Refaster template
* A collection of annotations that may be placed on Refaster template classes and Refaster template
* collection classes, thus influencing the way in which associated template matches are reported in
* non-patch mode.
*/
Expand Down

0 comments on commit 73c5cb3

Please sign in to comment.