[
https://issues.apache.org/jira/browse/DELTASPIKE-1279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16076972#comment-16076972
]
ASF subversion and git services commented on DELTASPIKE-1279:
-------------------------------------------------------------
Commit 02067752c9d4e32262791b9c210763990063bbf9 in deltaspike's branch
refs/heads/master from [~rdebusscher]
[ https://git-wip-us.apache.org/repos/asf?p=deltaspike.git;h=0206775 ]
DELTASPIKE-1279: equals/hashcode for SimpleSecurityViolation
> 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
> Fix For: 1.8.1
>
>
> 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)