mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GT-0 fixed miscellaneous tests failing
This commit is contained in:
parent
0109c9e8d8
commit
20f5f53778
6 changed files with 140 additions and 146 deletions
|
@ -662,7 +662,7 @@ public abstract class SymbolDB extends DatabaseObject implements Symbol {
|
|||
}
|
||||
|
||||
Symbol s = (Symbol) obj;
|
||||
if (getID() == s.getID()) {
|
||||
if (hasSameId(s)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -682,6 +682,13 @@ public abstract class SymbolDB extends DatabaseObject implements Symbol {
|
|||
return SystemUtilities.isEqual(myParent, otherParent);
|
||||
}
|
||||
|
||||
private boolean hasSameId(Symbol s) {
|
||||
if (getID() == s.getID()) {
|
||||
return getProgram() == s.getProgram();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return (int) key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue