< prev index next >

src/java.base/share/classes/java/lang/ClassLoader.java

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

*** 1117,1127 **** int off, int len, ProtectionDomain pd, String source); // true if the name is null or has the potential to be a valid binary name private boolean checkName(String name) { ! if ((name == null) || (name.length() == 0)) return true; if ((name.indexOf('/') != -1) || (name.charAt(0) == '[')) return false; return true; } --- 1117,1127 ---- int off, int len, ProtectionDomain pd, String source); // true if the name is null or has the potential to be a valid binary name private boolean checkName(String name) { ! if ((name == null) || (name.isEmpty())) return true; if ((name.indexOf('/') != -1) || (name.charAt(0) == '[')) return false; return true; }
< prev index next >