< prev index next >

src/java.base/share/classes/sun/nio/fs/AbstractUserDefinedFileAttributeView.java

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

@@ -81,11 +81,11 @@
         for (String name: attributes) {
             if (name.equals("*")) {
                 names = list();
                 break;
             } else {
-                if (name.length() == 0)
+                if (name.isEmpty())
                     throw new IllegalArgumentException();
                 names.add(name);
             }
         }
 
< prev index next >