Convert Change.Id to AutoValue

See I6982fb24 for context.

Change-Id: I95de46939a11d9a6116680f5b881cdfcf6fe705a
This commit is contained in:
Dave Borowitz
2019-04-19 09:27:30 -07:00
parent dde21db7a5
commit eeed4dd47d
69 changed files with 173 additions and 178 deletions

View File

@@ -92,7 +92,7 @@ class ChangesImpl implements Changes {
public ChangeApi create(ChangeInput in) throws RestApiException {
try {
ChangeInfo out = createChange.apply(TopLevelResource.INSTANCE, in).value();
return api.create(changes.parse(new Change.Id(out._number)));
return api.create(changes.parse(Change.id(out._number)));
} catch (Exception e) {
throw asRestApiException("Cannot create change", e);
}