Fix API breakage on ChangeDetailService
The Mylyn Reviews project pointed out Gerrit changed the API signature of a JSON method they use remotely. Fix the API back to the original signature, and define a new method with the extra arguments. Change-Id: I51cbbdd64bdb72a666a6b5266db3b93494b75182 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -320,7 +320,7 @@ public abstract class PatchScreen extends Screen implements
|
||||
protected void onLoad() {
|
||||
super.onLoad();
|
||||
if (patchSetDetail == null) {
|
||||
Util.DETAIL_SVC.patchSetDetail(idSideB, null, null,
|
||||
Util.DETAIL_SVC.patchSetDetail(idSideB,
|
||||
new GerritCallback<PatchSetDetail>() {
|
||||
@Override
|
||||
public void onSuccess(PatchSetDetail result) {
|
||||
@@ -403,7 +403,7 @@ public abstract class PatchScreen extends Screen implements
|
||||
commitMessageBlock.display(patchSetDetail.getInfo().getMessage());
|
||||
} else {
|
||||
commitMessageBlock.setVisible(false);
|
||||
Util.DETAIL_SVC.patchSetDetail(idSideB, null, null,
|
||||
Util.DETAIL_SVC.patchSetDetail(idSideB,
|
||||
new GerritCallback<PatchSetDetail>() {
|
||||
@Override
|
||||
public void onSuccess(PatchSetDetail result) {
|
||||
@@ -500,7 +500,7 @@ public abstract class PatchScreen extends Screen implements
|
||||
final PatchSet.Id psid = patchKey.getParentKey();
|
||||
fileList = new PatchTable(prefs);
|
||||
fileList.setSavePointerId("PatchTable " + psid);
|
||||
Util.DETAIL_SVC.patchSetDetail(psid, null, null,
|
||||
Util.DETAIL_SVC.patchSetDetail(psid,
|
||||
new GerritCallback<PatchSetDetail>() {
|
||||
public void onSuccess(final PatchSetDetail result) {
|
||||
fileList.display(result);
|
||||
|
||||
Reference in New Issue
Block a user