Use Class#arrayType() where feasible

Closes gh-31002
This commit is contained in:
Sam Brannen
2023-08-07 12:07:46 +03:00
parent 6090eb0b42
commit fe5560400c
6 changed files with 9 additions and 14 deletions

View File

@@ -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());
}
}
}