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

@@ -121,7 +121,7 @@ public class ChangeArgumentParser {
private List<Change.Id> parseId(String id) throws UnloggedFailure {
try {
return Arrays.asList(new Change.Id(Integer.parseInt(id)));
return Arrays.asList(Change.id(Integer.parseInt(id)));
} catch (NumberFormatException e) {
throw new UnloggedFailure(2, "Invalid change ID " + id, e);
}