mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-1647 equivalence check
This commit is contained in:
@@ -201,12 +201,17 @@ public class InjectPayloadDexParameters implements InjectPayload {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return (obj instanceof InjectPayloadDexParameters); // All instances are equal
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return 123474219; // All instances are equal
|
||||
public boolean isEquivalent(InjectPayload obj) {
|
||||
if (getClass() != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
InjectPayloadDexParameters op2 = (InjectPayloadDexParameters) obj;
|
||||
if (!name.equals(op2.name)) {
|
||||
return false;
|
||||
}
|
||||
if (!sourceName.equals(op2.sourceName)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user