mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Removing Map.of() usage from Utility, which needs to build with Java 1.8
compliance.
This commit is contained in:
parent
c75dcfd1f5
commit
a3baea4180
1 changed files with 9 additions and 9 deletions
|
@ -221,15 +221,15 @@ public class GhidraLauncher {
|
|||
|
||||
// Now handle modules that are internal to the Ghidra installation.
|
||||
// We will primarily order them by "type" and secondarily by name.
|
||||
Map<String, Integer> typePriorityMap = Map.of(
|
||||
"Framework", 0,
|
||||
"Configurations", 1,
|
||||
"Features", 2,
|
||||
"Processors", 3,
|
||||
"GPL", 4,
|
||||
"Extensions", 5,
|
||||
"Test", 6
|
||||
);
|
||||
Map<String, Integer> typePriorityMap = new HashMap<>();
|
||||
typePriorityMap.put("Framework", 0);
|
||||
typePriorityMap.put("Configurations", 1);
|
||||
typePriorityMap.put("Features", 2);
|
||||
typePriorityMap.put("Processors", 3);
|
||||
typePriorityMap.put("GPL", 4);
|
||||
typePriorityMap.put("Extensions", 5);
|
||||
typePriorityMap.put("Test", 6);
|
||||
|
||||
String type1 = module1.getModuleRoot().getParentFile().getName();
|
||||
String type2 = module2.getModuleRoot().getParentFile().getName();
|
||||
int priority1 = typePriorityMap.getOrDefault(type1, typePriorityMap.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue