修改:头码车路径构建bug
This commit is contained in:
parent
506b908a04
commit
c464a77768
@ -8,6 +8,7 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 交路(从一个车站的可折返区段到另一个车站的可折返区段,途经的所有可停车区段列表)
|
||||
@ -69,6 +70,6 @@ public class Routing {
|
||||
}
|
||||
list.add(endSection);
|
||||
}
|
||||
return list;
|
||||
return list.stream().distinct().collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user