GT-0 fixed miscellaneous tests failing

This commit is contained in:
ghidravore 2019-12-03 16:42:49 -05:00
parent 0109c9e8d8
commit 20f5f53778
6 changed files with 140 additions and 146 deletions

View file

@ -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;