From d3a7620c3eba8b618401e6cdb32e55ed05841088 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Sat, 2 Sep 2023 18:46:39 +0200 Subject: [PATCH] Rename check --- ...arameterOrder.java => RefasterMethodParameterOrder.java} | 6 +++--- ...OrderTest.java => RefasterMethodParameterOrderTest.java} | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/{RefasterParameterOrder.java => RefasterMethodParameterOrder.java} (96%) rename error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/{RefasterParameterOrderTest.java => RefasterMethodParameterOrderTest.java} (94%) 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 96% 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..2ba280b74ac 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 @@ -54,14 +54,14 @@ 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;",