From 4984efaf25618cacda24464e9b0d4d9f49639a70 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Thu, 11 Jan 2024 07:35:06 +0100 Subject: [PATCH] Drop workaround --- .../bugpatterns/RefasterMethodParameterOrderTest.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java index b16a5ed6a1..6ac21f65ab 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java @@ -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;", "", @@ -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;", "",