[ https://issues.apache.org/jira/browse/DELTASPIKE-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek reassigned DELTASPIKE-1279: -------------------------------------------- Assignee: Rudy De Busscher > SimpleSecurityViolation needs equals/hashcode > --------------------------------------------- > > Key: DELTASPIKE-1279 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1279 > Project: DeltaSpike > Issue Type: Improvement > Components: Core > Reporter: Rudy De Busscher > Assignee: Rudy De Busscher > > 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. -- This message was sent by Atlassian JIRA (v6.4.14#64029)