소스 검색

Make InternalMethodInvocation package protected for better unit test support.

Ben Alex 21 년 전
부모
커밋
ab6df6cfce
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      core/src/main/java/org/acegisecurity/intercept/method/aopalliance/MethodDefinitionSourceAdvisor.java

+ 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();