directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r539935 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java
Date Sun, 20 May 2007 20:41:31 GMT
Author: ersiner
Date: Sun May 20 13:41:30 2007
New Revision: 539935

URL: http://svn.apache.org/viewvc?view=rev&rev=539935
Log:
Javadoc update.

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java?view=diff&rev=539935&r1=539934&r2=539935
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/DirectoryClassUtils.java
Sun May 20 13:41:30 2007
@@ -21,6 +21,7 @@
 package org.apache.directory.shared.ldap.util;
 
 import java.lang.reflect.Method;
+import java.util.Arrays;
 
 /**
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
@@ -30,16 +31,16 @@
 {
     
     /**
-     * A replacement for {@link java.lang.Class.getMethod} with extended functionality.
+     * A replacement for {@link java.lang.Class.getMethod} with extended capability.
      * 
      * <p>
      * This method returns parameter-list assignment-compatible method as well as
      * exact-signature matching method.
      * 
-     * @param clazz
-     * @param candidateMethodName
-     * @param candidateParameterTypes
-     * @return
+     * @param clazz The class which will be queried for the method.
+     * @param candidateMethodName Name of the method been looked for.
+     * @param candidateParameterTypes Types of the parameters in the signature of the method
being loooked for.
+     * @return The Method found.
      * @throws NoSuchMethodException
      */
     public static Method getAssignmentCompatibleMethod( Class clazz,
@@ -101,7 +102,7 @@
             return methods[ mx ];
         }
         
-        throw new NoSuchMethodException();
+        throw new NoSuchMethodException( clazz.getName() + "." + candidateMethodName + "("
+ Arrays.toString( candidateParameterTypes ) + ")" );
         
     }
 



Mime
View raw message