< prev index next >
src/java.base/share/classes/jdk/internal/util/jar/JarIndex.java
Print this page
rev 51919 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb
*** 289,299 ****
/* read until we see a .jar line */
while((line = br.readLine()) != null && !line.endsWith(".jar"));
for(;line != null; line = br.readLine()) {
! if (line.length() == 0)
continue;
if (line.endsWith(".jar")) {
currentJar = line;
jars.add(currentJar);
--- 289,299 ----
/* read until we see a .jar line */
while((line = br.readLine()) != null && !line.endsWith(".jar"));
for(;line != null; line = br.readLine()) {
! if (line.isEmpty())
continue;
if (line.endsWith(".jar")) {
currentJar = line;
jars.add(currentJar);
< prev index next >