Description
SimpleSecurityViolation can be used to add violations to the Set of violations when writing a custom voter.
Creation of the instance can be done by org.apache.deltaspike.security.api.authorization.AbstractDecisionVoter#newSecurityViolation
But since the class SimpleSecurityViolation has no equals/hashcode, adding 2 or more violations with the same reason results in multiple entries within the Set.
A simple equals/hashcode based on the reason String property solves this.