mirror of
https://github.com/apache/struts.git
synced 2026-08-06 23:27:07 +00:00
WW-5478 Fix ActionContext equals/hashCode contract
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user