Fix static analyzer findings
In FakeChangeIndex, make static Schema declarations final. In AbstractQueryAccountsTest, make the private inner class static. Change-Id: Iaedae36d88df24a870470a704d0f2ca18e8c1e87
This commit is contained in:
committed by
David Pursehouse
parent
272552ad6f
commit
69e587c017
@@ -30,10 +30,10 @@ import org.junit.Ignore;
|
||||
|
||||
@Ignore
|
||||
public class FakeChangeIndex implements ChangeIndex {
|
||||
static Schema<ChangeData> V1 =
|
||||
static final Schema<ChangeData> V1 =
|
||||
new Schema<>(1, ImmutableList.<FieldDef<ChangeData, ?>>of(ChangeField.STATUS));
|
||||
|
||||
static Schema<ChangeData> V2 =
|
||||
static final Schema<ChangeData> V2 =
|
||||
new Schema<>(2, ImmutableList.of(ChangeField.STATUS, ChangeField.PATH, ChangeField.UPDATED));
|
||||
|
||||
private static class Source implements ChangeDataSource {
|
||||
|
||||
Reference in New Issue
Block a user