Convert Change.Id to AutoValue
See I6982fb24 for context. Change-Id: I95de46939a11d9a6116680f5b881cdfcf6fe705a
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user