Make Account an AutoValue

Change-Id: Iaf2fc09dee221cf25d05932ba8ccf30b047da014
This commit is contained in:
Patrick Hiesel
2019-07-23 15:04:06 +02:00
parent c9b0eb1849
commit cd7077cd9e
98 changed files with 422 additions and 426 deletions

View File

@@ -40,7 +40,10 @@ public class FakeAccountCache implements AccountCache {
if (state != null) {
return state;
}
return newState(new Account(accountId, TimeUtil.nowTs()));
return newState(
Account.builder(accountId, TimeUtil.nowTs())
.setMetaId("1234567812345678123456781234567812345678")
.build());
}
@Override
@@ -72,7 +75,7 @@ public class FakeAccountCache implements AccountCache {
public synchronized void put(Account account) {
AccountState state = newState(account);
byId.put(account.getId(), state);
byId.put(account.id(), state);
}
private static AccountState newState(Account account) {