@@ -65,61 +65,61 @@ public static Class<?> createClass(final String className) throws ParseException
6565 }
6666
6767 /**
68- * Returns the date represented by {@code str }.
68+ * Returns the date represented by {@code string }.
6969 * <p>
7070 * This method is not yet implemented and always throws an {@link UnsupportedOperationException}.
7171 * </p>
7272 *
73- * @param str the date string
74- * @return The date if {@code str } is a valid date string, otherwise return null.
73+ * @param string the date string
74+ * @return The date if {@code string } is a valid date string, otherwise return null.
7575 * @deprecated use {@link #createValue(String, Class)}
7676 */
7777 @ Deprecated // since 1.7.0
78- public static Date createDate (final String str ) {
79- return createValueUnchecked (str , Date .class );
78+ public static Date createDate (final String string ) {
79+ return createValueUnchecked (string , Date .class );
8080 }
8181
8282 /**
83- * Returns the File represented by {@code str }.
83+ * Returns the File represented by {@code string }.
8484 *
85- * @param str the File location
86- * @return The file represented by {@code str }.
85+ * @param string the File location
86+ * @return The file represented by {@code string }.
8787 * @deprecated use {@link #createValue(String, Class)}
8888 */
8989 @ Deprecated // since 1.7.0
90- public static File createFile (final String str ) {
91- return createValueUnchecked (str , File .class );
90+ public static File createFile (final String string ) {
91+ return createValueUnchecked (string , File .class );
9292 }
9393
9494 /**
95- * Creates the File[] represented by {@code str }.
95+ * Creates the File[] represented by {@code string }.
9696 *
9797 * <p>
9898 * This method is not yet implemented and always throws an {@link UnsupportedOperationException}.
9999 * </p>
100100 *
101- * @param str the paths to the files
102- * @return The File[] represented by {@code str }.
101+ * @param string the paths to the files
102+ * @return The File[] represented by {@code string }.
103103 * @throws UnsupportedOperationException always
104104 * @deprecated with no replacement
105105 */
106106 @ Deprecated // since 1.7.0
107- public static File [] createFiles (final String str ) {
107+ public static File [] createFiles (final String string ) {
108108 // to implement/port:
109- // return FileW.findFiles(str );
109+ // return FileW.findFiles(string );
110110 throw new UnsupportedOperationException ("Not yet implemented" );
111111 }
112112
113113 /**
114114 * Creates a number from a String. If a '.' is present, it creates a Double, otherwise a Long.
115115 *
116- * @param str the value
117- * @return the number represented by {@code str }
118- * @throws ParseException if {@code str } is not a number
116+ * @param string the value
117+ * @return the number represented by {@code string }
118+ * @throws ParseException if {@code string } is not a number
119119 */
120120 @ Deprecated // since 1.7.0
121- public static Number createNumber (final String str ) throws ParseException {
122- return createValue (str , Number .class );
121+ public static Number createNumber (final String string ) throws ParseException {
122+ return createValue (string , Number .class );
123123 }
124124
125125 /**
@@ -136,63 +136,63 @@ public static Object createObject(final String className) throws ParseException
136136 }
137137
138138 /**
139- * Creates the URL represented by {@code str }.
139+ * Creates the URL represented by {@code string }.
140140 *
141- * @param str the URL string
142- * @return The URL in {@code str } is well-formed
143- * @throws ParseException if the URL in {@code str } is not well-formed
141+ * @param string the URL string
142+ * @return The URL in {@code string } is well-formed
143+ * @throws ParseException if the URL in {@code string } is not well-formed
144144 * @deprecated use {@link #createValue(String, Class)}
145145 */
146146 @ Deprecated // since 1.7.0
147- public static URL createURL (final String str ) throws ParseException {
148- return createValue (str , URL .class );
147+ public static URL createURL (final String string ) throws ParseException {
148+ return createValue (string , URL .class );
149149 }
150150
151151 /**
152152 * Creates the @code Object} of type {@code clazz} with the value of
153- * {@code str }.
153+ * {@code string }.
154154 *
155- * @param str the command line value
155+ * @param string the command line value
156156 * @param clazz the class representing the type of argument
157157 * @param <T> type of argument
158- * @return The instance of {@code clazz} initialized with the value of {@code str }.
158+ * @return The instance of {@code clazz} initialized with the value of {@code string }.
159159 * @throws ParseException if the value creation for the given class threw an exception.
160160 */
161161 @ SuppressWarnings ("unchecked" ) // returned value will have type T because it is fixed by clazz
162- public static <T > T createValue (final String str , final Class <T > clazz ) throws ParseException {
162+ public static <T > T createValue (final String string , final Class <T > clazz ) throws ParseException {
163163 try {
164- return (T ) getConverter (clazz ).apply (str );
164+ return (T ) getConverter (clazz ).apply (string );
165165 } catch (final Throwable e ) {
166166 throw ParseException .wrap (e );
167167 }
168168 }
169169
170170 /**
171- * Creates the {@code Object} of type {@code obj} with the value of {@code str }.
171+ * Creates the {@code Object} of type {@code obj} with the value of {@code string }.
172172 *
173- * @param str the command line value
173+ * @param string the command line value
174174 * @param obj the type of argument
175- * @return The instance of {@code obj} initialized with the value of {@code str }.
175+ * @return The instance of {@code obj} initialized with the value of {@code string }.
176176 * @throws ParseException if the value creation for the given object type failed
177177 * @deprecated use {@link #createValue(String, Class)}
178178 */
179179 @ Deprecated // since 1.7.0
180- public static Object createValue (final String str , final Object obj ) throws ParseException {
181- return createValue (str , (Class <?>) obj );
180+ public static Object createValue (final String string , final Object obj ) throws ParseException {
181+ return createValue (string , (Class <?>) obj );
182182 }
183183
184184 /**
185185 * Delegates to {@link #createValue(String, Class)} throwing IllegalArgumentException instead of ParseException.
186186 *
187- * @param str the command line value
187+ * @param string the command line value
188188 * @param clazz the class representing the type of argument
189189 * @param <T> type of argument
190- * @return The instance of {@code clazz} initialized with the value of {@code str }.
190+ * @return The instance of {@code clazz} initialized with the value of {@code string }.
191191 * @throws IllegalArgumentException if the value creation for the given class threw an exception.
192192 */
193- private static <T > T createValueUnchecked (final String str , final Class <T > clazz ) {
193+ private static <T > T createValueUnchecked (final String string , final Class <T > clazz ) {
194194 try {
195- return createValue (str , clazz );
195+ return createValue (string , clazz );
196196 } catch (final ParseException e ) {
197197 throw new IllegalArgumentException (e );
198198 }
@@ -219,16 +219,16 @@ public static void noConverters() {
219219 }
220220
221221 /**
222- * Returns the opened FileInputStream represented by {@code str }.
222+ * Returns the opened FileInputStream represented by {@code string }.
223223 *
224- * @param str the file location
225- * @return The file input stream represented by {@code str }.
224+ * @param string the file location
225+ * @return The file input stream represented by {@code string }.
226226 * @throws ParseException if the file is not exist or not readable
227227 * @deprecated use {@link #createValue(String, Class)}
228228 */
229229 @ Deprecated // since 1.7.0
230- public static FileInputStream openFile (final String str ) throws ParseException {
231- return createValue (str , FileInputStream .class );
230+ public static FileInputStream openFile (final String string ) throws ParseException {
231+ return createValue (string , FileInputStream .class );
232232 }
233233
234234 /**
0 commit comments