|
|
|
@ -27,12 +27,12 @@ import java.net.URL; |
|
|
|
import java.nio.charset.Charset; |
|
|
|
import java.nio.charset.Charset; |
|
|
|
import java.nio.file.Path; |
|
|
|
import java.nio.file.Path; |
|
|
|
import java.time.ZoneId; |
|
|
|
import java.time.ZoneId; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.Currency; |
|
|
|
import java.util.Currency; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
import java.util.LinkedList; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Locale; |
|
|
|
import java.util.Locale; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
@ -318,7 +318,7 @@ public class PropertyEditorRegistrySupport implements PropertyEditorRegistry { |
|
|
|
// Check property-specific editor first.
|
|
|
|
// Check property-specific editor first.
|
|
|
|
PropertyEditor editor = getCustomEditor(propertyPath, requiredType); |
|
|
|
PropertyEditor editor = getCustomEditor(propertyPath, requiredType); |
|
|
|
if (editor == null) { |
|
|
|
if (editor == null) { |
|
|
|
List<String> strippedPaths = new LinkedList<>(); |
|
|
|
List<String> strippedPaths = new ArrayList<>(); |
|
|
|
addStrippedPropertyPaths(strippedPaths, "", propertyPath); |
|
|
|
addStrippedPropertyPaths(strippedPaths, "", propertyPath); |
|
|
|
for (Iterator<String> it = strippedPaths.iterator(); it.hasNext() && editor == null;) { |
|
|
|
for (Iterator<String> it = strippedPaths.iterator(); it.hasNext() && editor == null;) { |
|
|
|
String strippedPath = it.next(); |
|
|
|
String strippedPath = it.next(); |
|
|
|
@ -438,7 +438,7 @@ public class PropertyEditorRegistrySupport implements PropertyEditorRegistry { |
|
|
|
if (this.customEditorsForPath != null) { |
|
|
|
if (this.customEditorsForPath != null) { |
|
|
|
CustomEditorHolder editorHolder = this.customEditorsForPath.get(propertyName); |
|
|
|
CustomEditorHolder editorHolder = this.customEditorsForPath.get(propertyName); |
|
|
|
if (editorHolder == null) { |
|
|
|
if (editorHolder == null) { |
|
|
|
List<String> strippedPaths = new LinkedList<>(); |
|
|
|
List<String> strippedPaths = new ArrayList<>(); |
|
|
|
addStrippedPropertyPaths(strippedPaths, "", propertyName); |
|
|
|
addStrippedPropertyPaths(strippedPaths, "", propertyName); |
|
|
|
for (Iterator<String> it = strippedPaths.iterator(); it.hasNext() && editorHolder == null;) { |
|
|
|
for (Iterator<String> it = strippedPaths.iterator(); it.hasNext() && editorHolder == null;) { |
|
|
|
String strippedName = it.next(); |
|
|
|
String strippedName = it.next(); |
|
|
|
|