Skip to content

Commit d48bcaa

Browse files
committed
Format to longer lines
1 parent 99f822a commit d48bcaa

1 file changed

Lines changed: 18 additions & 21 deletions

File tree

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

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,22 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2828
import java.util.Map;
2929

3030
/**
31-
* TypeHandler will handle the pluggable conversion and verification of
32-
* Option types. It handles the mapping of classes to bot converters and verifiers.
33-
* It provides the default conversion and verification methods when converters and verifiers
34-
* are not explicitly set.
31+
* TypeHandler will handle the pluggable conversion and verification of Option types. It handles the mapping of classes to bot converters and verifiers. It
32+
* provides the default conversion and verification methods when converters and verifiers are not explicitly set.
3533
* <p>
36-
* If Options are serialized and deserialized their converters and verifiers will revert to the
37-
* defaults defined in this class. To correctly de-serialize Options with custom converters and/or
38-
* verifiers, using the default serialization methods, this class should be properly configured with the custom
39-
* converters and verifiers for the specific class.
34+
* If Options are serialized and deserialized their converters and verifiers will revert to the defaults defined in this class. To correctly de-serialize
35+
* Options with custom converters and/or verifiers, using the default serialization methods, this class should be properly configured with the custom converters
36+
* and verifiers for the specific class.
4037
* </p>
4138
*/
4239
public class TypeHandler {
4340

4441
/** Value of hex conversion of strings */
4542
private static final int HEX_RADIX = 16;
4643

47-
/** Map of Class to Converter. */
44+
/**
45+
* Map of Class to Converter.
46+
*/
4847
private static Map<Class<?>, Converter<?, ?>> converterMap = new HashMap<>();
4948

5049
static {
@@ -100,7 +99,7 @@ public static File createFile(final String string) {
10099
*
101100
* @param string the paths to the files
102101
* @return The File[] represented by {@code string}.
103-
* @throws UnsupportedOperationException always
102+
* @throws UnsupportedOperationException always
104103
* @deprecated with no replacement
105104
*/
106105
@Deprecated // since 1.7.0
@@ -149,12 +148,11 @@ public static URL createURL(final String string) throws ParseException {
149148
}
150149

151150
/**
152-
* Creates the @code Object} of type {@code clazz} with the value of
153-
* {@code string}.
151+
* Creates the @code Object} of type {@code clazz} with the value of {@code string}.
154152
*
155153
* @param string the command line value
156-
* @param clazz the class representing the type of argument
157-
* @param <T> type of argument
154+
* @param clazz the class representing the type of argument
155+
* @param <T> type of argument
158156
* @return The instance of {@code clazz} initialized with the value of {@code string}.
159157
* @throws ParseException if the value creation for the given class threw an exception.
160158
*/
@@ -171,7 +169,7 @@ public static <T> T createValue(final String string, final Class<T> clazz) throw
171169
* Creates the {@code Object} of type {@code obj} with the value of {@code string}.
172170
*
173171
* @param string the command line value
174-
* @param obj the type of argument
172+
* @param obj the type of argument
175173
* @return The instance of {@code obj} initialized with the value of {@code string}.
176174
* @throws ParseException if the value creation for the given object type failed
177175
* @deprecated use {@link #createValue(String, Class)}
@@ -185,8 +183,8 @@ public static Object createValue(final String string, final Object obj) throws P
185183
* Delegates to {@link #createValue(String, Class)} throwing IllegalArgumentException instead of ParseException.
186184
*
187185
* @param string the command line value
188-
* @param clazz the class representing the type of argument
189-
* @param <T> type of argument
186+
* @param clazz the class representing the type of argument
187+
* @param <T> type of argument
190188
* @return The instance of {@code clazz} initialized with the value of {@code string}.
191189
* @throws IllegalArgumentException if the value creation for the given class threw an exception.
192190
*/
@@ -232,11 +230,10 @@ public static FileInputStream openFile(final String string) throws ParseExceptio
232230
}
233231

234232
/**
235-
* Registers a Converter for a Class. If @code converter} is null registration is cleared for {@code clazz}, and
236-
* no converter will be used in processing.
233+
* Registers a Converter for a Class. If @code converter} is null registration is cleared for {@code clazz}, and no converter will be used in processing.
237234
*
238-
* @param clazz the Class to register the Converter and Verifier to.
239-
* @param converter The Converter to associate with Class. May be null.
235+
* @param clazz the Class to register the Converter and Verifier to.
236+
* @param converter The Converter to associate with Class. May be null.
240237
* @since 1.7.0
241238
*/
242239
public static void register(final Class<?> clazz, final Converter<?, ?> converter) {

0 commit comments

Comments
 (0)