mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Merge remote-tracking branch 'origin/GP-0_Dan_testFixes-2024-09-13-1' into Ghidra_11.2
This commit is contained in:
commit
ac7168d103
1 changed files with 4 additions and 2 deletions
|
@ -809,12 +809,14 @@ public class TraceRmiTarget extends AbstractTarget {
|
||||||
|
|
||||||
public MatchedMethod getBest(String name, ActionName action,
|
public MatchedMethod getBest(String name, ActionName action,
|
||||||
Supplier<List<? extends MethodMatcher>> preferredSupplier) {
|
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,
|
public MatchedMethod getBest(String name, ActionName action,
|
||||||
List<? extends MethodMatcher> preferred) {
|
List<? extends MethodMatcher> preferred) {
|
||||||
return map.computeIfAbsent(name, n -> chooseBest(action, preferred));
|
synchronized (map) {
|
||||||
|
return map.computeIfAbsent(name, n -> chooseBest(action, preferred));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private MatchedMethod chooseBest(ActionName name, List<? extends MethodMatcher> preferred) {
|
private MatchedMethod chooseBest(ActionName name, List<? extends MethodMatcher> preferred) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue