WW-5478 Fix ActionContext equals/hashCode contract

This commit is contained in:
Kusal Kithul-Godage
2024-11-01 19:59:52 +11:00
parent fe46ad9f4a
commit c176390926
@@ -542,11 +542,16 @@ public class ActionContext implements Serializable {
}
@Override
public boolean equals(Object obj) {
public final boolean equals(Object obj) {
if (!(obj instanceof ActionContext)) {
return false;
}
ActionContext other = (ActionContext) obj;
return Objects.equals(getContextMap(), other.getContextMap());
}
@Override
public final int hashCode() {
return Objects.hash(getContextMap());
}
}