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-2025-04-14-1'
This commit is contained in:
commit
5fb58661b9
1 changed files with 9 additions and 6 deletions
|
@ -144,7 +144,9 @@ public class DependentServiceResolver<T> {
|
|||
constructed.put(cons.method, service);
|
||||
}
|
||||
instancesByClass.put(cons.cls, service);
|
||||
for (Field f : fieldsByClass.remove(cons.cls)) {
|
||||
Set<Field> fields = fieldsByClass.remove(cons.cls);
|
||||
if (fields != null) {
|
||||
for (Field f : fields) {
|
||||
try {
|
||||
f.set(obj, service);
|
||||
}
|
||||
|
@ -153,6 +155,7 @@ public class DependentServiceResolver<T> {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!fieldsByClass.isEmpty()) {
|
||||
throw new ServiceConstructionException(
|
||||
"No service constructor for " + fieldsByClass.keySet(), null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue