| Line 181... |
Line 181... |
| 181 |
* visible at all. A pass walks the whole list to the end, so nothing can be starved
|
181 |
* visible at all. A pass walks the whole list to the end, so nothing can be starved
|
| 182 |
* by ordering and a plain concatenation is enough.
|
182 |
* by ordering and a plain concatenation is enough.
|
| 183 |
*
|
183 |
*
|
| 184 |
* The pools are disjoint by construction -- the secondary query excludes anything
|
184 |
* The pools are disjoint by construction -- the secondary query excludes anything
|
| 185 |
* with a FofoLineItem -- so distinct() is cheap insurance, not a fix for a known
|
185 |
* with a FofoLineItem -- so distinct() is cheap insurance, not a fix for a known
|
| 186 |
* overlap. selectImeiActivationPendingByRealme is a verbatim duplicate of
|
186 |
* overlap. The brand-generic call is used for every brand; the realme-named copy of
|
| 187 |
* selectImeiActivationPendingByBrand (same named query, same parameters), so the
|
187 |
* it has been deleted, it was a verbatim duplicate down to the named query.
|
| 188 |
* brand-generic call is used for every brand.
|
- |
|
| 189 |
*/
|
188 |
*/
|
| 190 |
private List<String> pendingFor(String brand) {
|
189 |
private List<String> pendingFor(String brand) {
|
| 191 |
List<String> pool = new ArrayList<>();
|
190 |
List<String> pool = new ArrayList<>();
|
| 192 |
pool.addAll(activatedImeiRepository.selectImeiActivationPendingByBrand(brand, DAYS, POOL_CAP)
|
191 |
pool.addAll(activatedImeiRepository.selectImeiActivationPendingByBrand(brand, DAYS, POOL_CAP)
|
| 193 |
.stream().map(ImeiActivationTimestampModel::getSerialNumber).collect(Collectors.toList()));
|
192 |
.stream().map(ImeiActivationTimestampModel::getSerialNumber).collect(Collectors.toList()));
|