Remove unused variables in ConsensusBased and UnanimousBased
This commit is contained in:
@@ -68,7 +68,6 @@ public class ConsensusBased extends AbstractAccessDecisionManager {
|
||||
Collection<ConfigAttribute> configAttributes) throws AccessDeniedException {
|
||||
int grant = 0;
|
||||
int deny = 0;
|
||||
int abstain = 0;
|
||||
|
||||
for (AccessDecisionVoter voter : getDecisionVoters()) {
|
||||
int result = voter.vote(authentication, object, configAttributes);
|
||||
@@ -89,8 +88,6 @@ public class ConsensusBased extends AbstractAccessDecisionManager {
|
||||
break;
|
||||
|
||||
default:
|
||||
abstain++;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,6 @@ public class UnanimousBased extends AbstractAccessDecisionManager {
|
||||
Collection<ConfigAttribute> attributes) throws AccessDeniedException {
|
||||
|
||||
int grant = 0;
|
||||
int abstain = 0;
|
||||
|
||||
List<ConfigAttribute> singleAttributeList = new ArrayList<>(1);
|
||||
singleAttributeList.add(null);
|
||||
@@ -91,8 +90,6 @@ public class UnanimousBased extends AbstractAccessDecisionManager {
|
||||
"Access is denied"));
|
||||
|
||||
default:
|
||||
abstain++;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user