1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Make compatible with interface changes to aopalliance.jar.

This commit is contained in:
Ben Alex
2004-03-27 00:44:27 +00:00
parent e3dc29ae96
commit 14f27ae683
3 changed files with 7 additions and 15 deletions
@@ -67,11 +67,11 @@ public class BankSecurityVoter implements AccessDecisionVoter {
// Lookup the account number being passed
Integer accountNumber = null;
for (int i = 0; i < invocation.getArgumentCount(); i++) {
Class argClass = invocation.getArgument(i).getClass();
for (int i = 0; i < invocation.getArguments().length; i++) {
Class argClass = invocation.getArguments()[i].getClass();
if (Integer.class.isAssignableFrom(argClass)) {
accountNumber = (Integer) invocation.getArgument(i);
accountNumber = (Integer) invocation.getArguments()[i];
}
}
@@ -15,7 +15,6 @@
package net.sf.acegisecurity.attribute;
import org.aopalliance.intercept.AttributeRegistry;
import org.aopalliance.intercept.Invocation;
import org.aopalliance.intercept.MethodInvocation;
@@ -66,13 +65,6 @@ public class MockMethodInvocation implements MethodInvocation {
throw new UnsupportedOperationException("mock method not implemented");
}
/* (non-Javadoc)
* @see org.aopalliance.intercept.Invocation#getAttributeRegistry()
*/
public AttributeRegistry getAttributeRegistry() {
throw new UnsupportedOperationException("mock method not implemented");
}
/* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInvocation#getMethod()
*/