See gh-20192
This commit is contained in:
zhangt2333
2020-02-15 12:14:40 +08:00
committed by Stephane Nicoll
parent ff4de95b3e
commit e2d87a89d0
5 changed files with 6 additions and 18 deletions

View File

@@ -54,7 +54,7 @@ final class ClassPathIndexFile {
}
private String getFolder(String name) {
int lastSlash = name.lastIndexOf("/");
int lastSlash = name.lastIndexOf('/');
return (lastSlash != -1) ? name.substring(0, lastSlash) : null;
}