From ab6df6cfce0275fdd96dd870bdb2e97a80a4775a Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Fri, 3 Dec 2004 06:40:11 +0000 Subject: [PATCH] Make InternalMethodInvocation package protected for better unit test support. --- .../method/aopalliance/MethodDefinitionSourceAdvisor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/acegisecurity/intercept/method/aopalliance/MethodDefinitionSourceAdvisor.java b/core/src/main/java/org/acegisecurity/intercept/method/aopalliance/MethodDefinitionSourceAdvisor.java index 1fd67eb4f8..94c5de8ab0 100644 --- a/core/src/main/java/org/acegisecurity/intercept/method/aopalliance/MethodDefinitionSourceAdvisor.java +++ b/core/src/main/java/org/acegisecurity/intercept/method/aopalliance/MethodDefinitionSourceAdvisor.java @@ -90,14 +90,16 @@ public class MethodDefinitionSourceAdvisor * configuration attributes for MethodInvocations. *

*/ - private class InternalMethodInvocation implements MethodInvocation { + class InternalMethodInvocation implements MethodInvocation { Method method; public InternalMethodInvocation(Method method) { this.method = method; } - private InternalMethodInvocation() {} + protected InternalMethodInvocation() { + throw new UnsupportedOperationException(); + } public Object[] getArguments() { throw new UnsupportedOperationException();