File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,25 +101,25 @@ public static Number createNumber(final String str) throws ParseException {
101101 }
102102
103103 /**
104- * Create an Object from the classname and empty constructor.
104+ * Create an Object from the class name and empty constructor.
105105 *
106- * @param classname the argument value
106+ * @param className the argument value
107107 * @return the initialized object
108108 * @throws ParseException if the class could not be found or the object could not be created
109109 */
110- public static Object createObject (final String classname ) throws ParseException {
110+ public static Object createObject (final String className ) throws ParseException {
111111 final Class <?> cl ;
112112
113113 try {
114- cl = Class .forName (classname );
114+ cl = Class .forName (className );
115115 } catch (final ClassNotFoundException cnfe ) {
116- throw new ParseException ("Unable to find the class: " + classname );
116+ throw new ParseException ("Unable to find the class: " + className );
117117 }
118118
119119 try {
120120 return cl .getConstructor ().newInstance ();
121121 } catch (final Exception e ) {
122- throw new ParseException (e .getClass ().getName () + "; Unable to create an instance of: " + classname );
122+ throw new ParseException (e .getClass ().getName () + "; Unable to create an instance of: " + className );
123123 }
124124 }
125125
You can’t perform that action at this time.
0 commit comments