src/java.base/share/classes/sun/security/jca/GetInstance.java
changeset 53018 8bf9268df0e2
parent 47216 71c04702a3d5
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
    73     }
    73     }
    74 
    74 
    75     public static Service getService(String type, String algorithm,
    75     public static Service getService(String type, String algorithm,
    76             String provider) throws NoSuchAlgorithmException,
    76             String provider) throws NoSuchAlgorithmException,
    77             NoSuchProviderException {
    77             NoSuchProviderException {
    78         if ((provider == null) || (provider.length() == 0)) {
    78         if (provider == null || provider.isEmpty()) {
    79             throw new IllegalArgumentException("missing provider");
    79             throw new IllegalArgumentException("missing provider");
    80         }
    80         }
    81         Provider p = Providers.getProviderList().getProvider(provider);
    81         Provider p = Providers.getProviderList().getProvider(provider);
    82         if (p == null) {
    82         if (p == null) {
    83             throw new NoSuchProviderException("no such provider: " + provider);
    83             throw new NoSuchProviderException("no such provider: " + provider);