Convert Change.Key to AutoValue

See I6982fb24 for context.

Change-Id: I3917b0b2a7ef67ea9dfde36adca741d1cba61bfd
This commit is contained in:
Dave Borowitz
2019-04-19 09:21:46 -07:00
parent 5c9a6500a8
commit 5fefac6756
17 changed files with 51 additions and 55 deletions

View File

@@ -237,7 +237,7 @@ class ChangeNotesParser {
return ChangeNotesState.create(
tip.copy(),
id,
new Change.Key(changeId),
Change.key(changeId),
createdOn,
lastUpdatedOn,
ownerId,

View File

@@ -595,7 +595,7 @@ public abstract class ChangeNotesState {
private static ChangeColumns toChangeColumns(Change.Id changeId, ChangeColumnsProto proto) {
ChangeColumns.Builder b =
ChangeColumns.builder()
.changeKey(new Change.Key(proto.getChangeKey()))
.changeKey(Change.key(proto.getChangeKey()))
.createdOn(new Timestamp(proto.getCreatedOn()))
.lastUpdatedOn(new Timestamp(proto.getLastUpdatedOn()))
.owner(Account.id(proto.getOwner()))