Drop LabelType.getPosition()
Instead sort labels implicitly based on the order passed into LabelTypes. Change-Id: Ib57664acc543539a7c5c1b9279970f4ba7d04bb7
This commit is contained in:
@@ -88,8 +88,7 @@ public class ReviewerJson {
|
||||
}
|
||||
|
||||
// Don't use Maps.newTreeMap(Comparator) due to OpenJDK bug 100167.
|
||||
out.approvals = new TreeMap<String,String>(LabelOrdering.create(
|
||||
labelTypes));
|
||||
out.approvals = new TreeMap<String,String>(labelTypes.nameComparator());
|
||||
for (PatchSetApproval ca : approvals) {
|
||||
for (PermissionRange pr : ctl.getLabelRanges()) {
|
||||
if (!pr.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user