< prev index next >

src/java.base/share/classes/com/sun/net/ssl/KeyManagerFactory.java

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

*** 151,161 **** */ public static final KeyManagerFactory getInstance(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException { ! if (provider == null || provider.length() == 0) throw new IllegalArgumentException("missing provider"); Object[] objs = SSLSecurity.getImpl(algorithm, "KeyManagerFactory", provider); return new KeyManagerFactory((KeyManagerFactorySpi)objs[0], (Provider)objs[1], algorithm); --- 151,161 ---- */ public static final KeyManagerFactory getInstance(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException { ! if (provider == null || provider.isEmpty()) throw new IllegalArgumentException("missing provider"); Object[] objs = SSLSecurity.getImpl(algorithm, "KeyManagerFactory", provider); return new KeyManagerFactory((KeyManagerFactorySpi)objs[0], (Provider)objs[1], algorithm);
< prev index next >