Convert Change.Key to AutoValue
See I6982fb24 for context. Change-Id: I3917b0b2a7ef67ea9dfde36adca741d1cba61bfd
This commit is contained in:
@@ -237,7 +237,7 @@ class ChangeNotesParser {
|
||||
return ChangeNotesState.create(
|
||||
tip.copy(),
|
||||
id,
|
||||
new Change.Key(changeId),
|
||||
Change.key(changeId),
|
||||
createdOn,
|
||||
lastUpdatedOn,
|
||||
ownerId,
|
||||
|
||||
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user