We're updating the issue view to help you get more done. 

Broken equals implementation for org.herasaf.xacml.core.simplePDP.initializers.PolicyCombiningAlgorithmsJAXBInitializer

Description

Equals implementation compares against wrong class name (PolicyCombiningAlgorithm), and will thus never yield true.

Consider to remove all equals() and hashCode() from Initializers (as they are not value types nor used as value types).

Relevant snippet:

/** {@inheritDoc} */
public boolean equals(Object obj) {
if (obj == null) {
return false;
}

if (!(obj instanceof PolicyCombiningAlgorithm)) {
return false;
}

return hashCode() == obj.hashCode();
}

Environment

None

Status

Assignee

Unassigned

Reporter

Walco van Loon

Labels

None

Time tracking

1h

Components

Fix versions

Affects versions

1.0.0-M2

Priority

Trivial