commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r320789 - /jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/MethodInterceptorChain.java
Date Thu, 13 Oct 2005 16:00:15 GMT
Author: jcarman
Date: Thu Oct 13 09:00:11 2005
New Revision: 320789

URL: http://svn.apache.org/viewcvs?rev=320789&view=rev
Log:
Refactored to use null rather than an empty array.

Modified:
    jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/MethodInterceptorChain.java

Modified: jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/MethodInterceptorChain.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/MethodInterceptorChain.java?rev=320789&r1=320788&r2=320789&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/MethodInterceptorChain.java
(original)
+++ jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/interceptor/MethodInterceptorChain.java
Thu Oct 13 09:00:11 2005
@@ -62,7 +62,7 @@
 
     public ObjectProvider createProxyProvider( ProxyFactory proxyFactory, Object terminus
)
     {
-        return createProxyProvider( proxyFactory, terminus, new Class[] {} );
+        return createProxyProvider( proxyFactory, terminus, null );
     }
 
     public ObjectProvider createProxyProvider( ProxyFactory proxyFactory, Object terminus,
Class[] proxyClasses )
@@ -74,7 +74,7 @@
     public ObjectProvider createProxyProvider( ProxyFactory proxyFactory, ClassLoader classLoader,
Object terminus,
                                                Class[] proxyClasses )
     {
-        if( proxyClasses.length == 0 )
+        if( proxyClasses == null || proxyClasses.length == 0 )
         {
             proxyClasses = ProxyUtils.getAllInterfaces( terminus.getClass() );
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message