mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
Test fixes
This commit is contained in:
parent
a21c2c4347
commit
3c9dbf5414
3 changed files with 9 additions and 7 deletions
|
@ -21,7 +21,7 @@ import java.util.*;
|
|||
import java.util.Map.Entry;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import ghidra.util.exception.AssertException;
|
||||
import ghidra.util.Msg;
|
||||
|
||||
public class ReflectionUtilities {
|
||||
|
||||
|
@ -240,13 +240,15 @@ public class ReflectionUtilities {
|
|||
}
|
||||
|
||||
if (lastIgnoreIndex == -1) {
|
||||
throw new AssertException("Did not find the following classes in the call stack: " +
|
||||
Arrays.toString(classes));
|
||||
Msg.error(ReflectionUtilities.class,
|
||||
"Change call to ReflectionUtils. Did not find the " +
|
||||
"following classes in the call stack: " + Arrays.toString(classes));
|
||||
}
|
||||
|
||||
if (lastIgnoreIndex == trace.length - 1) {
|
||||
throw new AssertException(
|
||||
"Call stack only contains the classes to ignore: " + Arrays.toString(classes));
|
||||
Msg.error(ReflectionUtilities.class,
|
||||
"Change call to ReflectionUtils. Call stack only contains the classes to ignore: " +
|
||||
Arrays.toString(classes));
|
||||
}
|
||||
|
||||
int startIndex = lastIgnoreIndex + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue