Merge branch 'stable-2.14'
* stable-2.14: InlineEdit: Fix comparison against edit revision Change-Id: Ibaa9f554e310a1accf072f3b12a1b6691dfefcfa
This commit is contained in:
commit
960f3b7c00
@ -51,11 +51,7 @@ public class DiffObject {
|
||||
return new DiffObject(true);
|
||||
}
|
||||
|
||||
try {
|
||||
return new DiffObject(new PatchSet.Id(changeId, Integer.parseInt(str)));
|
||||
} catch (NumberFormatException e) {
|
||||
return null;
|
||||
}
|
||||
return new DiffObject(Dispatcher.toPsId(changeId, str));
|
||||
}
|
||||
|
||||
/** Create a DiffObject that represents the parent of a 1-parent patch set. */
|
||||
|
@ -466,7 +466,7 @@ public class Dispatcher {
|
||||
}
|
||||
}
|
||||
|
||||
private static PatchSet.Id toPsId(Change.Id id, String psIdStr) {
|
||||
public static PatchSet.Id toPsId(Change.Id id, String psIdStr) {
|
||||
return new PatchSet.Id(id, psIdStr.equals("edit") ? 0 : Integer.parseInt(psIdStr));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user