mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-10-23 21:50:49 +00:00
GP-3721: Consistent order in Auto-Read Memory menu
This commit is contained in:
parent
5888ac64e1
commit
e917c18d82
|
@ -15,8 +15,7 @@
|
|||
*/
|
||||
package ghidra.app.plugin.core.debug.gui.action;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
@ -34,7 +33,7 @@ import ghidra.util.classfinder.ExtensionPoint;
|
|||
|
||||
public interface AutoReadMemorySpec extends ExtensionPoint {
|
||||
class Private {
|
||||
private final Map<String, AutoReadMemorySpec> specsByName = new TreeMap<>();
|
||||
private final Map<String, AutoReadMemorySpec> specsByName = new HashMap<>();
|
||||
private final ChangeListener classListener = this::classesChanged;
|
||||
|
||||
private Private() {
|
||||
|
@ -72,7 +71,7 @@ public interface AutoReadMemorySpec extends ExtensionPoint {
|
|||
|
||||
static Map<String, AutoReadMemorySpec> allSpecs() {
|
||||
synchronized (PRIVATE) {
|
||||
return Map.copyOf(PRIVATE.specsByName);
|
||||
return new TreeMap<>(PRIVATE.specsByName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user