This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit dbb7d6a92d846d454c6f48080b67528f1e122004
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Nov 13 22:37:43 2019 +0000

    Javadoc fixes (copied from 8.5.x)
---
 java/org/apache/el/util/ReflectionUtil.java | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/java/org/apache/el/util/ReflectionUtil.java 
b/java/org/apache/el/util/ReflectionUtil.java
index 17cbd76..9d9e761 100644
--- a/java/org/apache/el/util/ReflectionUtil.java
+++ b/java/org/apache/el/util/ReflectionUtil.java
@@ -78,9 +78,12 @@ public class ReflectionUtil {
     }
 
     /**
-     * Converts an array of Class names to Class types
-     * @param s
-     * @throws ClassNotFoundException
+     * Converts an array of Class names to Class types.
+     * @param s  The array of class names
+     * @return An array of Class instance where the element at index i in the
+     *         result is an instance of the class with the name at index i in
+     *         the input
+     * @throws ClassNotFoundException If a class of a given name cannot be 
found
      */
     public static Class<?>[] toTypeArray(String[] s) throws 
ClassNotFoundException {
         if (s == null)
@@ -93,8 +96,10 @@ public class ReflectionUtil {
     }
 
     /**
-     * Converts an array of Class types to Class names
-     * @param c
+     * Converts an array of Class types to Class names.
+     * @param c The array of class instances
+     * @return An array of Class names where the element at index i in the
+     *         result is the name of the class instance at index i in the input
      */
     public static String[] toTypeNameArray(Class<?>[] c) {
         if (c == null)
@@ -113,7 +118,8 @@ public class ReflectionUtil {
      * @param paramTypes the parameter types to use
      * @param paramValues the parameter values
      * @return the method specified
-     * @throws MethodNotFoundException
+     * @throws MethodNotFoundException If a method cannot be found that matches
+     *         the given criteria
      */
     /*
      * This class duplicates code in javax.el.Util. When making changes keep
@@ -123,6 +129,7 @@ public class ReflectionUtil {
     public static Method getMethod(Object base, Object property,
             Class<?>[] paramTypes, Object[] paramValues)
             throws MethodNotFoundException {
+
         if (base == null || property == null) {
             throw new MethodNotFoundException(MessageFactory.get(
                     "error.method.notfound", base, property,


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to