< prev index next >

src/java.base/share/classes/jdk/internal/util/jar/JarIndex.java

Print this page
rev 52979 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: TBD

@@ -289,11 +289,11 @@
 
         /* 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)
+            if (line.isEmpty())
                 continue;
 
             if (line.endsWith(".jar")) {
                 currentJar = line;
                 jars.add(currentJar);
< prev index next >