File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/main/java/com/google/errorprone/bugpatterns Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 17
17
package com .google .errorprone .bugpatterns ;
18
18
19
19
import static com .google .common .collect .Iterables .getLast ;
20
- import static com .google .errorprone .BugPattern .SeverityLevel .WARNING ;
20
+ import static com .google .errorprone .BugPattern .SeverityLevel .ERROR ;
21
21
import static com .google .errorprone .fixes .SuggestedFixes .qualifyType ;
22
22
import static com .google .errorprone .matchers .Description .NO_MATCH ;
23
23
import static com .google .errorprone .util .ASTHelpers .getStartPosition ;
51
51
summary =
52
52
"Using @Test(expected=...) is discouraged, since the test will pass if *any* statement in"
53
53
+ " the test method throws the expected exception" ,
54
- severity = WARNING )
54
+ severity = ERROR )
55
55
public class TestExceptionChecker extends BugChecker implements MethodTreeMatcher {
56
56
57
57
@ Override
You can’t perform that action at this time.
0 commit comments