Skip to content

Commit

Permalink
Drop workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Jan 13, 2024
1 parent d6690cf commit 4984efa
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,9 @@ void identification() {

@Test
void replacement() {
// XXX: Drop the package declaration once OpenRewrite properly handles Refaster rules in the
// unnamed package. See https://github.com/openrewrite/rewrite-templating/pull/64.
BugCheckerRefactoringTestHelper.newInstance(RefasterMethodParameterOrder.class, getClass())
.addInputLines(
"pkg/A.java",
"package pkg;",
"",
"A.java",
"import com.google.errorprone.refaster.annotation.AfterTemplate;",
"import com.google.errorprone.refaster.annotation.BeforeTemplate;",
"",
Expand Down Expand Up @@ -95,9 +91,7 @@ void replacement() {
" }",
"}")
.addOutputLines(
"pkg/A.java",
"package pkg;",
"",
"A.java",
"import com.google.errorprone.refaster.annotation.AfterTemplate;",
"import com.google.errorprone.refaster.annotation.BeforeTemplate;",
"",
Expand Down

0 comments on commit 4984efa

Please sign in to comment.