Skip to content

Commit

Permalink
[#657] bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Apr 5, 2019
1 parent 1be1a2f commit bbdea1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/picocli/CommandLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -8105,7 +8105,7 @@ private Collection<Object> createCollection(Class<?> collectionClass, Class<?> e
}
private ITypeConverter<?> getTypeConverter(final Class<?> type, ArgSpec argSpec, int index) {
if (argSpec.converters().length > index) { return argSpec.converters()[index]; }
if (char[].class.equals(argSpec.type())) { return converterRegistry.get(char[].class); }
if (char[].class.equals(argSpec.type()) && argSpec.interactive()) { return converterRegistry.get(char[].class); }
if (converterRegistry.containsKey(type)) { return converterRegistry.get(type); }
if (type.isEnum()) {
return new ITypeConverter<Object>() {
Expand Down

0 comments on commit bbdea1b

Please sign in to comment.