< 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,91 **** for (String name: attributes) { if (name.equals("*")) { names = list(); break; } else { ! if (name.length() == 0) throw new IllegalArgumentException(); names.add(name); } } --- 81,91 ---- for (String name: attributes) { if (name.equals("*")) { names = list(); break; } else { ! if (name.isEmpty()) throw new IllegalArgumentException(); names.add(name); } }
< prev index next >