< prev index next >

src/java.base/share/classes/javax/security/auth/PrivateCredentialPermission.java

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

*** 310,320 **** return null; } private void init(String name) { ! if (name == null || name.trim().length() == 0) { throw new IllegalArgumentException("invalid empty name"); } ArrayList<CredOwner> pList = new ArrayList<>(); StringTokenizer tokenizer = new StringTokenizer(name, " ", true); --- 310,320 ---- return null; } private void init(String name) { ! if (name == null || name.trim().isEmpty()) { throw new IllegalArgumentException("invalid empty name"); } ArrayList<CredOwner> pList = new ArrayList<>(); StringTokenizer tokenizer = new StringTokenizer(name, " ", true);
< prev index next >