Replace some String.length() checks with String.isEmpty()
Closes gh-10451
This commit is contained in:
committed by
Stephane Nicoll
parent
b08e51f0b3
commit
756398b52c
@@ -255,7 +255,7 @@ public class JarWriter implements LoaderClassesWriter, AutoCloseable {
|
||||
}
|
||||
if (parent.lastIndexOf("/") != -1) {
|
||||
parent = parent.substring(0, parent.lastIndexOf("/") + 1);
|
||||
if (parent.length() > 0) {
|
||||
if (!parent.isEmpty()) {
|
||||
writeEntry(new JarArchiveEntry(parent), null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user