src/java.base/share/classes/sun/security/util/AbstractAlgorithmConstraints.java
changeset 53018 8bf9268df0e2
parent 47216 71c04702a3d5
equal deleted inserted replaced
53017:e10a1f7aaa13 53018:8bf9268df0e2
    73         return algorithmsInProperty;
    73         return algorithmsInProperty;
    74     }
    74     }
    75 
    75 
    76     static boolean checkAlgorithm(String[] algorithms, String algorithm,
    76     static boolean checkAlgorithm(String[] algorithms, String algorithm,
    77             AlgorithmDecomposer decomposer) {
    77             AlgorithmDecomposer decomposer) {
    78         if (algorithm == null || algorithm.length() == 0) {
    78         if (algorithm == null || algorithm.isEmpty()) {
    79             throw new IllegalArgumentException("No algorithm name specified");
    79             throw new IllegalArgumentException("No algorithm name specified");
    80         }
    80         }
    81 
    81 
    82         Set<String> elements = null;
    82         Set<String> elements = null;
    83         for (String item : algorithms) {
    83         for (String item : algorithms) {