diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/Slf4jLoggerDeclaration.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/Slf4jLoggerDeclaration.java index 8435860751..66fb716729 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/Slf4jLoggerDeclaration.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/Slf4jLoggerDeclaration.java @@ -53,7 +53,7 @@ public final class Slf4jLoggerDeclaration extends BugChecker implements Variable private static final Matcher IS_GET_LOGGER = staticMethod().onDescendantOf("org.slf4j.LoggerFactory").named("getLogger"); private static final String CANONICAL_STATIC_LOGGER_NAME_FLAG = - "Slf4jLogDeclaration:CanonicalStaticLoggerName"; + "Slf4jLoggerDeclaration:CanonicalStaticLoggerName"; private static final String DEFAULT_CANONICAL_LOGGER_NAME = "LOG"; private static final Matcher IS_STATIC_ENCLOSING_CLASS_REFERENCE = classLiteral(Slf4jLoggerDeclaration::isEnclosingClassReference); diff --git a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/Slf4jLoggerDeclarationTest.java b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/Slf4jLoggerDeclarationTest.java index ada419cc4c..3bf864548e 100644 --- a/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/Slf4jLoggerDeclarationTest.java +++ b/error-prone-contrib/src/test/java/tech/picnic/errorprone/bugpatterns/Slf4jLoggerDeclarationTest.java @@ -1,6 +1,5 @@ package tech.picnic.errorprone.bugpatterns; -import com.google.common.collect.ImmutableList; import com.google.errorprone.BugCheckerRefactoringTestHelper; import com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode; import com.google.errorprone.CompilationTestHelper; @@ -189,7 +188,7 @@ void replacement() { @Test void replacementWithCustomLoggerName() { BugCheckerRefactoringTestHelper.newInstance(Slf4jLoggerDeclaration.class, getClass()) - .setArgs(ImmutableList.of("-XepOpt:Slf4jLogDeclaration:CanonicalStaticLoggerName=FOO_BAR")) + .setArgs("-XepOpt:Slf4jLoggerDeclaration:CanonicalStaticLoggerName=FOO_BAR") .addInputLines( "A.java", "import org.slf4j.Logger;",