|
1 | 1 | /* |
2 | | - * Copyright 2021 The Error Prone Authors. |
| 2 | + * Copyright 2022 The Error Prone Authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
16 | 16 |
|
17 | 17 | package com.google.errorprone.bugpatterns; |
18 | 18 |
|
| 19 | +import static com.google.errorprone.BugPattern.SeverityLevel.WARNING; |
| 20 | +import static com.google.errorprone.BugPattern.StandardTags.LIKELY_ERROR; |
19 | 21 | import static com.google.errorprone.matchers.ChildMultiMatcher.MatchType.AT_LEAST_ONE; |
20 | 22 | import static com.google.errorprone.matchers.Matchers.annotations; |
21 | 23 | import static com.google.errorprone.matchers.Matchers.anyOf; |
22 | 24 | import static com.google.errorprone.matchers.Matchers.isType; |
23 | 25 |
|
24 | 26 | 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; |
28 | 27 | import com.google.errorprone.VisitorState; |
29 | 28 | import com.google.errorprone.bugpatterns.BugChecker.ClassTreeMatcher; |
30 | 29 | import com.google.errorprone.matchers.Description; |
|
37 | 36 |
|
38 | 37 | /** A {@link BugChecker}; see the associated {@link BugPattern} annotation for details. */ |
39 | 38 | @BugPattern( |
40 | | - name = "MissingRefasterAnnotation", |
41 | 39 | 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) |
45 | 42 | public final class MissingRefasterAnnotation extends BugChecker implements ClassTreeMatcher { |
46 | 43 | private static final MultiMatcher<Tree, AnnotationTree> HAS_REFASTER_ANNOTATION = |
47 | 44 | annotations( |
|
0 commit comments