Skip to content

Commit d6a7be7

Browse files
committed
Drop obsolete @BugPattern linkType and name declarations
1 parent 07eff64 commit d6a7be7

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

core/src/main/java/com/google/errorprone/bugpatterns/MissingRefasterAnnotation.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 The Error Prone Authors.
2+
* Copyright 2022 The Error Prone Authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,15 +16,14 @@
1616

1717
package com.google.errorprone.bugpatterns;
1818

19+
import static com.google.errorprone.BugPattern.SeverityLevel.WARNING;
20+
import static com.google.errorprone.BugPattern.StandardTags.LIKELY_ERROR;
1921
import static com.google.errorprone.matchers.ChildMultiMatcher.MatchType.AT_LEAST_ONE;
2022
import static com.google.errorprone.matchers.Matchers.annotations;
2123
import static com.google.errorprone.matchers.Matchers.anyOf;
2224
import static com.google.errorprone.matchers.Matchers.isType;
2325

2426
import com.google.errorprone.BugPattern;
25-
import com.google.errorprone.BugPattern.LinkType;
26-
import com.google.errorprone.BugPattern.SeverityLevel;
27-
import com.google.errorprone.BugPattern.StandardTags;
2827
import com.google.errorprone.VisitorState;
2928
import com.google.errorprone.bugpatterns.BugChecker.ClassTreeMatcher;
3029
import com.google.errorprone.matchers.Description;
@@ -37,11 +36,9 @@
3736

3837
/** A {@link BugChecker}; see the associated {@link BugPattern} annotation for details. */
3938
@BugPattern(
40-
name = "MissingRefasterAnnotation",
4139
summary = "The Refaster template contains a method without any Refaster annotations",
42-
linkType = LinkType.NONE,
43-
severity = SeverityLevel.WARNING,
44-
tags = StandardTags.LIKELY_ERROR)
40+
severity = WARNING,
41+
tags = LIKELY_ERROR)
4542
public final class MissingRefasterAnnotation extends BugChecker implements ClassTreeMatcher {
4643
private static final MultiMatcher<Tree, AnnotationTree> HAS_REFASTER_ANNOTATION =
4744
annotations(

core/src/test/java/com/google/errorprone/bugpatterns/MissingRefasterAnnotationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 The Error Prone Authors.
2+
* Copyright 2022 The Error Prone Authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)