Merge remote-tracking branch 'origin/GP-0_Dan_testFixes-2024-09-13-1' into Ghidra_11.2

This commit is contained in:
Ryan Kurtz 2024-09-13 10:09:47 -04:00
commit ac7168d103

View File

@ -809,13 +809,15 @@ public class TraceRmiTarget extends AbstractTarget {
public MatchedMethod getBest(String name, ActionName action,
Supplier<List<? extends MethodMatcher>> preferredSupplier) {
return map.computeIfAbsent(name, n -> chooseBest(action, preferredSupplier.get()));
return getBest(name, action, preferredSupplier.get());
}
public MatchedMethod getBest(String name, ActionName action,
List<? extends MethodMatcher> preferred) {
synchronized (map) {
return map.computeIfAbsent(name, n -> chooseBest(action, preferred));
}
}
private MatchedMethod chooseBest(ActionName name, List<? extends MethodMatcher> preferred) {
if (preferred.isEmpty()) {