diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterParameterOrder.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrder.java similarity index 95% rename from error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterParameterOrder.java rename to error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrder.java index 16e2578740b..ff92688bf83 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterParameterOrder.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrder.java @@ -50,18 +50,18 @@ @AutoService(BugChecker.class) @BugPattern( summary = "Refaster template parameters should be listed in a canonical order", - link = BUG_PATTERNS_BASE_URL + "RefasterParameterOrder", + link = BUG_PATTERNS_BASE_URL + "RefasterMethodParameterOrder", linkType = CUSTOM, severity = SUGGESTION, tags = STYLE) -public final class RefasterParameterOrder extends BugChecker implements ClassTreeMatcher { +public final class RefasterMethodParameterOrder extends BugChecker implements ClassTreeMatcher { private static final long serialVersionUID = 1L; private static final Matcher BEFORE_TEMPLATE_METHOD = hasAnnotation(BeforeTemplate.class); private static final Matcher BEFORE_OR_AFTER_TEMPLATE_METHOD = anyOf(BEFORE_TEMPLATE_METHOD, hasAnnotation(AfterTemplate.class)); - /** Instantiates a new {@link RefasterParameterOrder} instance. */ - public RefasterParameterOrder() {} + /** Instantiates a new {@link RefasterMethodParameterOrder} instance. */ + public RefasterMethodParameterOrder() {} @Override public Description matchClass(ClassTree tree, VisitorState state) { diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterParameterOrderTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java similarity index 94% rename from error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterParameterOrderTest.java rename to error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java index b8e1f82be32..d0d5aa1b3c6 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterParameterOrderTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RefasterMethodParameterOrderTest.java @@ -5,10 +5,10 @@ import com.google.errorprone.CompilationTestHelper; import org.junit.jupiter.api.Test; -final class RefasterParameterOrderTest { +final class RefasterMethodParameterOrderTest { @Test void identification() { - CompilationTestHelper.newInstance(RefasterParameterOrder.class, getClass()) + CompilationTestHelper.newInstance(RefasterMethodParameterOrder.class, getClass()) .addSourceLines( "A.java", "import static com.google.errorprone.refaster.ImportPolicy.STATIC_IMPORT_ALWAYS;", @@ -45,7 +45,7 @@ void identification() { @Test void replacement() { - BugCheckerRefactoringTestHelper.newInstance(RefasterParameterOrder.class, getClass()) + BugCheckerRefactoringTestHelper.newInstance(RefasterMethodParameterOrder.class, getClass()) .addInputLines( "A.java", "import com.google.errorprone.refaster.annotation.AfterTemplate;",