mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-09 14:08:03 -05:00
Merge remote-tracking branch 'origin/Ghidra_12.0'
This commit is contained in:
@@ -259,9 +259,10 @@ public class CoalescingAddRemoveStrategy<T> implements TableAddRemoveStrategy<T>
|
||||
return data;
|
||||
}
|
||||
|
||||
// Copy to a new list those items that are not marked for removal. This saves a list move
|
||||
// time a remove takes place
|
||||
List<T> newList = new ArrayList<>(data.size() - toRemove.size());
|
||||
// Copy to a new list those items that are not marked for removal. This saves a potential
|
||||
// list move operation every time a remove takes place.
|
||||
// Note: sometimes the items passed here in the toRemove set may not actually be in the data
|
||||
List<T> newList = new ArrayList<>();
|
||||
for (int i = 0; i < data.size(); i++) {
|
||||
if (monitor.isCancelled()) {
|
||||
return newList;
|
||||
|
||||
Reference in New Issue
Block a user