diff --git a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/CompileTimeConstantViolatesLiskovSubstitution.java b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/CompileTimeConstantViolatesLiskovSubstitution.java index 50e198136a..5d7180adc1 100644 --- a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/CompileTimeConstantViolatesLiskovSubstitution.java +++ b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/CompileTimeConstantViolatesLiskovSubstitution.java @@ -42,7 +42,8 @@ severity = BugPattern.SeverityLevel.ERROR, summary = "@CompileTimeConstant annotations on method parameters must also be applied to the super method. " + "Similarly, if a superclass or superinterface is annotated, implementations must also be annotated.") -public class CompileTimeConstantViolatesLiskovSubstitution extends BugChecker implements BugChecker.MethodTreeMatcher { +public final class CompileTimeConstantViolatesLiskovSubstitution extends BugChecker + implements BugChecker.MethodTreeMatcher { private static final Matcher INEXPENSIVE_CHECK = Matchers.anyOf( Matchers.methodIsConstructor(),