Remove the second parameter of substring() if possible
Closes gh-5720
This commit is contained in:
committed by
Stephane Nicoll
parent
58dac43b8d
commit
b914b4aa52
@@ -81,7 +81,7 @@ class RawConfigurationMetadata {
|
||||
String dottedPrefix = groupId + ".";
|
||||
String id = item.getId();
|
||||
if (hasLength(groupId) && id.startsWith(dottedPrefix)) {
|
||||
String name = id.substring(dottedPrefix.length(), id.length());
|
||||
String name = id.substring(dottedPrefix.length());
|
||||
item.setName(name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user