Skip to content

Ghidra is a software reverse engineering (SRE) framework

GT-3623 fixed location filter behavior where it kept popping up dialog about external filter changed

ghidravoref02520a713a3
diff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constraint/ColumnTypeMapper.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constraint/ColumnTypeMapper.java
index 755a47c5e1..cdfbd94061 100644
--- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constraint/ColumnTypeMapper.java
+++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constraint/ColumnTypeMapper.java
@@ -58,6 +58,26 @@ public abstract class ColumnTypeMapper<T, M> implements ExtensionPoint {
this.destinationType = destinationType;
}
+ @Override
+ public int hashCode() {
+ return sourceType.hashCode() + destinationType.hashCode();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (obj == null) {
+ return false;
+ }
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+ ColumnTypeMapper<?, ?> other = (ColumnTypeMapper<?, ?>) obj;
+ return destinationType == other.destinationType && sourceType == other.sourceType;
+ }
+
/**
* Converts an object of type T1 to an object of type T2
* @param value the object to convert.