Error Prone: Enable and fix ClassCanBeStatic
Change-Id: Ice8202695c2a525d751682185e1aa94663e0fbe0
This commit is contained in:

committed by
David Pursehouse

parent
8f0c2bb911
commit
4b25dd3c15
@@ -37,7 +37,7 @@ import java.util.stream.Stream;
|
||||
import org.junit.Test;
|
||||
|
||||
public class AccountResolverTest extends GerritBaseTests {
|
||||
private class TestSearcher extends StringSearcher {
|
||||
private static class TestSearcher extends StringSearcher {
|
||||
private final String pattern;
|
||||
private final boolean shortCircuit;
|
||||
private final ImmutableList<AccountState> accounts;
|
||||
|
@@ -30,7 +30,7 @@ java_package_configuration(
|
||||
"-Xep:BadComparable:WARN",
|
||||
"-Xep:BoxedPrimitiveConstructor:ERROR",
|
||||
"-Xep:CannotMockFinalClass:WARN",
|
||||
"-Xep:ClassCanBeStatic:WARN",
|
||||
"-Xep:ClassCanBeStatic:ERROR",
|
||||
"-Xep:ClassNewInstance:WARN",
|
||||
"-Xep:DateFormatConstant:ERROR",
|
||||
"-Xep:DefaultCharset:ERROR",
|
||||
|
Reference in New Issue
Block a user