Remove unnecessary assignment in PropertiesBeanDefinitionReader

Closes gh-24804
This commit is contained in:
Qimiao Chen
2020-03-30 18:41:19 +08:00
committed by GitHub
parent f8ff4e42b9
commit 821984a5cf

View File

@@ -368,7 +368,7 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
// Key is of form: prefix<name>.property
String nameAndProperty = keyString.substring(prefix.length());
// Find dot before property name, ignoring dots in property keys.
int sepIdx = -1;
int sepIdx ;
int propKeyIdx = nameAndProperty.indexOf(PropertyAccessor.PROPERTY_KEY_PREFIX);
if (propKeyIdx != -1) {
sepIdx = nameAndProperty.lastIndexOf(SEPARATOR, propKeyIdx);