Use Class#arrayType() where feasible
Closes gh-31002
This commit is contained in:
@@ -149,7 +149,7 @@ class TypeConverterDelegate {
|
||||
convertedValue = StringUtils.commaDelimitedListToStringArray(text);
|
||||
}
|
||||
if (editor == null && String.class != elementType) {
|
||||
editor = findDefaultEditor(Array.newInstance(elementType, 0).getClass());
|
||||
editor = findDefaultEditor(elementType.arrayType());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user