ChangeData: inline approvals() and drop Map from approvalsMap()

Change-Id: I9582be11bda331e03e758d6e8a35057886d976d7
This commit is contained in:
Dave Borowitz
2014-01-21 16:47:48 -08:00
parent 55bc67720e
commit b713b6393f
8 changed files with 11 additions and 20 deletions

View File

@@ -215,7 +215,7 @@ public class ChangeField {
public Iterable<Integer> get(ChangeData input, FillArgs args)
throws OrmException {
Set<Integer> r = Sets.newHashSet();
for (PatchSetApproval a : input.approvals()) {
for (PatchSetApproval a : input.approvals().values()) {
r.add(a.getAccountId().get());
}
return r;