浏览代码

Make InternalMethodInvocation package protected for better unit test support.

Ben Alex 21 年之前
父节点
当前提交
ab6df6cfce

+ 4 - 2
core/src/main/java/org/acegisecurity/intercept/method/aopalliance/MethodDefinitionSourceAdvisor.java

@@ -90,14 +90,16 @@ public class MethodDefinitionSourceAdvisor
      * configuration attributes for <code>MethodInvocation</code>s.
      * </p>
      */
-    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();