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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new b4d4c8b  Javadoc
b4d4c8b is described below

commit b4d4c8b2f61a17f9ccf9998cb868bacb26da3a6d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Oct 19 07:26:51 2023 -0400

    Javadoc
---
 src/main/java/org/apache/commons/cli/TypeHandler.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/commons/cli/TypeHandler.java 
b/src/main/java/org/apache/commons/cli/TypeHandler.java
index 1a31e60..99c374e 100644
--- a/src/main/java/org/apache/commons/cli/TypeHandler.java
+++ b/src/main/java/org/apache/commons/cli/TypeHandler.java
@@ -101,25 +101,25 @@ public class TypeHandler {
     }
 
     /**
-     * Create an Object from the classname and empty constructor.
+     * Create an Object from the class name and empty constructor.
      *
-     * @param classname the argument value
+     * @param className the argument value
      * @return the initialized object
      * @throws ParseException if the class could not be found or the object 
could not be created
      */
-    public static Object createObject(final String classname) throws 
ParseException {
+    public static Object createObject(final String className) throws 
ParseException {
         final Class<?> cl;
 
         try {
-            cl = Class.forName(classname);
+            cl = Class.forName(className);
         } catch (final ClassNotFoundException cnfe) {
-            throw new ParseException("Unable to find the class: " + classname);
+            throw new ParseException("Unable to find the class: " + className);
         }
 
         try {
             return cl.getConstructor().newInstance();
         } catch (final Exception e) {
-            throw new ParseException(e.getClass().getName() + "; Unable to 
create an instance of: " + classname);
+            throw new ParseException(e.getClass().getName() + "; Unable to 
create an instance of: " + className);
         }
     }
 

Reply via email to