Polish
See gh-20192
This commit is contained in:
committed by
Stephane Nicoll
parent
ff4de95b3e
commit
e2d87a89d0
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user