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