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

@@ -381,10 +381,7 @@ public abstract class MainClassFinder {
return false;
}
MainClass other = (MainClass) obj;
if (!this.name.equals(other.name)) {
return false;
}
return true;
return this.name.equals(other.name);
}
@Override

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;
}