mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Fixed bug in tests that allowed for ConcurrentModificationException
This commit is contained in:
parent
4629568298
commit
42dd992a85
1 changed files with 4 additions and 2 deletions
|
@ -15,8 +15,10 @@
|
|||
*/
|
||||
package ghidra.util;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
import ghidra.util.task.Task;
|
||||
import ghidra.util.task.TaskMonitor;
|
||||
|
@ -24,7 +26,7 @@ import ghidra.util.task.TaskMonitor;
|
|||
public class TaskUtilities {
|
||||
|
||||
private static Map<Task, TaskMonitor> runningTasks = new ConcurrentHashMap<>();
|
||||
private static List<TrackedTaskListener> listeners = new ArrayList<>();
|
||||
private static List<TrackedTaskListener> listeners = new CopyOnWriteArrayList<>();
|
||||
|
||||
/**
|
||||
* Adds a listener that will be notified when tasks are tracked (when they are added and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue