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