< prev index next >

src/java.base/share/classes/javax/security/auth/login/Configuration.java

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

*** 416,426 **** Configuration.Parameters params, String provider) throws NoSuchProviderException, NoSuchAlgorithmException { Objects.requireNonNull(type, "null type name"); ! if (provider == null || provider.length() == 0) { throw new IllegalArgumentException("missing provider"); } checkPermission(type); try { --- 416,426 ---- Configuration.Parameters params, String provider) throws NoSuchProviderException, NoSuchAlgorithmException { Objects.requireNonNull(type, "null type name"); ! if (provider == null || provider.isEmpty()) { throw new IllegalArgumentException("missing provider"); } checkPermission(type); try {
< prev index next >