Remove the second parameter of substring() if possible
Closes gh-5720
This commit is contained in:
committed by
Stephane Nicoll
parent
58dac43b8d
commit
b914b4aa52
@@ -54,7 +54,7 @@ public class ItemHint implements Comparable<ItemHint> {
|
||||
int dot = name.lastIndexOf('.');
|
||||
if (dot != -1) {
|
||||
String prefix = name.substring(0, dot);
|
||||
String originalName = name.substring(dot, name.length());
|
||||
String originalName = name.substring(dot);
|
||||
return prefix + ConfigurationMetadata.toDashedCase(originalName);
|
||||
}
|
||||
return ConfigurationMetadata.toDashedCase(name);
|
||||
|
||||
Reference in New Issue
Block a user