Commit ee8eb2d
kasemir
PVA client: Fix ConcurrentModificationException in search
`ChannelSearch.runSearches` used to re-use one `to_search` array list.
By the time the submitted searches encode the channels from that list,
it might get cleared and re-populated.
Need to create a new one in each `runSearches` call.
At same time removed some unnecessary casts.1 parent 0518d3c commit ee8eb2d
File tree
1 file changed
+5
-8
lines changed- core/pva/src/main/java/org/epics/pva/client
1 file changed
+5
-8
lines changedLines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | 345 | | |
349 | 346 | | |
350 | 347 | | |
351 | 348 | | |
352 | 349 | | |
353 | 350 | | |
354 | 351 | | |
355 | | - | |
| 352 | + | |
356 | 353 | | |
357 | 354 | | |
358 | 355 | | |
| |||
406 | 403 | | |
407 | 404 | | |
408 | 405 | | |
409 | | - | |
| 406 | + | |
410 | 407 | | |
411 | 408 | | |
412 | 409 | | |
| |||
428 | 425 | | |
429 | 426 | | |
430 | 427 | | |
431 | | - | |
432 | | - | |
433 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
434 | 431 | | |
435 | 432 | | |
436 | 433 | | |
| |||
0 commit comments