From 6f529ea5ad393d0d7e9c1a47ddd7b98614ee849a Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Mon, 11 Apr 2022 10:06:03 +0200 Subject: [PATCH] Rename --- ...stParamAnnotationCheck.java => RequestParamTypeCheck.java} | 4 ++-- ...nnotationCheckTest.java => RequestParamTypeCheckTest.java} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/{RequestParamAnnotationCheck.java => RequestParamTypeCheck.java} (93%) rename error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/{RequestParamAnnotationCheckTest.java => RequestParamTypeCheckTest.java} (94%) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RequestParamAnnotationCheck.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RequestParamTypeCheck.java similarity index 93% rename from error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RequestParamAnnotationCheck.java rename to error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RequestParamTypeCheck.java index 543fc4239f..199600e788 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RequestParamAnnotationCheck.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/RequestParamTypeCheck.java @@ -24,12 +24,12 @@ /** A {@link BugChecker} which flags {@code @RequestParam} parameters with an unsupported type. */ @AutoService(BugChecker.class) @BugPattern( - name = "RequestParamAnnotation", + name = "RequestParamType", summary = "`@RequestParam` does not support `ImmutableCollection` and `ImmutableMap` subtypes", linkType = NONE, severity = ERROR, tags = LIKELY_ERROR) -public final class RequestParamAnnotationCheck extends BugChecker implements VariableTreeMatcher { +public final class RequestParamTypeCheck extends BugChecker implements VariableTreeMatcher { private static final long serialVersionUID = 1L; private static final Matcher HAS_UNSUPPORTED_REQUEST_PARAM = allOf( diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RequestParamAnnotationCheckTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RequestParamTypeCheckTest.java similarity index 94% rename from error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RequestParamAnnotationCheckTest.java rename to error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RequestParamTypeCheckTest.java index 0ddc057205..0751c5b5e8 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RequestParamAnnotationCheckTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/RequestParamTypeCheckTest.java @@ -3,9 +3,9 @@ import com.google.errorprone.CompilationTestHelper; import org.junit.jupiter.api.Test; -final class RequestParamAnnotationCheckTest { +final class RequestParamTypeCheckTest { private final CompilationTestHelper compilationTestHelper = - CompilationTestHelper.newInstance(RequestParamAnnotationCheck.class, getClass()); + CompilationTestHelper.newInstance(RequestParamTypeCheck.class, getClass()); @Test void identification() {