BatchUpdate: Shorten ChangeContext method names

"Change" is implied by the type.

Change-Id: If01d523c821126dc14f39055c63770dce52a45ae
This commit is contained in:
Dave Borowitz
2016-01-13 16:36:50 -05:00
parent 970a78bfc8
commit c323b5d1e8
17 changed files with 49 additions and 49 deletions

View File

@@ -116,7 +116,7 @@ public class PutTopic implements RestModifyView<ChangeResource, Input>,
oldTopicName, newTopicName);
}
change.setTopic(Strings.emptyToNull(newTopicName));
ctx.getChangeUpdate().setTopic(change.getTopic());
ctx.getUpdate().setTopic(change.getTopic());
ChangeUtil.updated(change);
ctx.getDb().changes().update(Collections.singleton(change));
@@ -127,7 +127,7 @@ public class PutTopic implements RestModifyView<ChangeResource, Input>,
caller.getAccountId(), ctx.getWhen(),
change.currentPatchSetId());
cmsg.setMessage(summary);
cmUtil.addChangeMessage(ctx.getDb(), ctx.getChangeUpdate(), cmsg);
cmUtil.addChangeMessage(ctx.getDb(), ctx.getUpdate(), cmsg);
}
@Override