Skip to content

Commit b4d4c8b

Browse files
committed
Javadoc
1 parent 4c5aff8 commit b4d4c8b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/org/apache/commons/cli/TypeHandler.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)