Refine use of substring operations
Closes gh-25445
This commit is contained in:
@@ -501,7 +501,7 @@ public class PropertyEditorRegistrySupport implements PropertyEditorRegistry {
|
||||
if (endIndex != -1) {
|
||||
String prefix = propertyPath.substring(0, startIndex);
|
||||
String key = propertyPath.substring(startIndex, endIndex + 1);
|
||||
String suffix = propertyPath.substring(endIndex + 1, propertyPath.length());
|
||||
String suffix = propertyPath.substring(endIndex + 1);
|
||||
// Strip the first key.
|
||||
strippedPaths.add(nestedPath + prefix + suffix);
|
||||
// Search for further keys to strip, with the first key stripped.
|
||||
|
||||
Reference in New Issue
Block a user