Remove the second parameter of substring() if possible
Closes gh-5720
This commit is contained in:
committed by
Stephane Nicoll
parent
58dac43b8d
commit
b914b4aa52
@@ -76,7 +76,7 @@ public class ProjectInfoAutoConfiguration {
|
||||
Properties target = new Properties();
|
||||
for (String key : source.stringPropertyNames()) {
|
||||
if (key.startsWith(p)) {
|
||||
target.put(key.substring(p.length(), key.length()), source.get(key));
|
||||
target.put(key.substring(p.length()), source.get(key));
|
||||
}
|
||||
}
|
||||
return target;
|
||||
|
||||
Reference in New Issue
Block a user