截取数组多截取问题修改
This commit is contained in:
parent
6314f037e4
commit
24b115744a
|
@ -888,8 +888,8 @@ public class CalculateStationData {
|
|||
//判断当前结束下标是否超出台站数量 没有超出说明还在范围内 正常截取数组
|
||||
if (endIndex <= stationInfos.size()){
|
||||
infos = stationInfos.subList(startIndex, endIndex);
|
||||
}else {//如果超出台站数量 则从截取开始下标 截取到台站数组的最后一个下标
|
||||
infos = stationInfos.subList(startIndex, stationInfos.size()-1);
|
||||
}else {//如果超出台站数量 则从截取开始下标 截取到台站数组长度
|
||||
infos = stationInfos.subList(startIndex, stationInfos.size());
|
||||
}
|
||||
countDownLatch = new CountDownLatch(infos.size());
|
||||
//遍历当前组的台站并进行计算
|
||||
|
|
Loading…
Reference in New Issue
Block a user