removed type arguments
This commit is contained in:
parent
9224cace90
commit
1040780c2d
@ -670,21 +670,21 @@ public class RoutingEngine extends Thread {
|
|||||||
|
|
||||||
switch (preferredRandomType) {
|
switch (preferredRandomType) {
|
||||||
case AreaInfo.RESULT_TYPE_ELEV50:
|
case AreaInfo.RESULT_TYPE_ELEV50:
|
||||||
Collections.sort(ais, new Comparator<AreaInfo>() {
|
Collections.sort(ais, new Comparator<>() {
|
||||||
public int compare(AreaInfo o1, AreaInfo o2) {
|
public int compare(AreaInfo o1, AreaInfo o2) {
|
||||||
return o2.getElev50Weight() - o1.getElev50Weight();
|
return o2.getElev50Weight() - o1.getElev50Weight();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case AreaInfo.RESULT_TYPE_GREEN:
|
case AreaInfo.RESULT_TYPE_GREEN:
|
||||||
Collections.sort(ais, new Comparator<AreaInfo>() {
|
Collections.sort(ais, new Comparator<>() {
|
||||||
public int compare(AreaInfo o1, AreaInfo o2) {
|
public int compare(AreaInfo o1, AreaInfo o2) {
|
||||||
return o2.getGreen() - o1.getGreen();
|
return o2.getGreen() - o1.getGreen();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case AreaInfo.RESULT_TYPE_RIVER:
|
case AreaInfo.RESULT_TYPE_RIVER:
|
||||||
Collections.sort(ais, new Comparator<AreaInfo>() {
|
Collections.sort(ais, new Comparator<>() {
|
||||||
public int compare(AreaInfo o1, AreaInfo o2) {
|
public int compare(AreaInfo o1, AreaInfo o2) {
|
||||||
return o2.getRiver() - o1.getRiver();
|
return o2.getRiver() - o1.getRiver();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user