jdk/src/share/classes/sun/security/ssl/X509KeyManagerImpl.java
changeset 7990 57019dc81b66
parent 7043 5e2d1edeb2c7
child 9035 1255eb81cc2f
equal deleted inserted replaced
7989:ec76fe03fdd4 7990:57019dc81b66
   305     private static List<KeyType> getKeyTypes(String ... keyTypes) {
   305     private static List<KeyType> getKeyTypes(String ... keyTypes) {
   306         if ((keyTypes == null) ||
   306         if ((keyTypes == null) ||
   307                 (keyTypes.length == 0) || (keyTypes[0] == null)) {
   307                 (keyTypes.length == 0) || (keyTypes[0] == null)) {
   308             return null;
   308             return null;
   309         }
   309         }
   310         List<KeyType> list = new ArrayList<KeyType>(keyTypes.length);
   310         List<KeyType> list = new ArrayList<>(keyTypes.length);
   311         for (String keyType : keyTypes) {
   311         for (String keyType : keyTypes) {
   312             list.add(new KeyType(keyType));
   312             list.add(new KeyType(keyType));
   313         }
   313         }
   314         return list;
   314         return list;
   315     }
   315     }
   427     }
   427     }
   428 
   428 
   429     // make a Set out of the array
   429     // make a Set out of the array
   430     private Set<Principal> getIssuerSet(Principal[] issuers) {
   430     private Set<Principal> getIssuerSet(Principal[] issuers) {
   431         if ((issuers != null) && (issuers.length != 0)) {
   431         if ((issuers != null) && (issuers.length != 0)) {
   432             return new HashSet<Principal>(Arrays.asList(issuers));
   432             return new HashSet<>(Arrays.asList(issuers));
   433         } else {
   433         } else {
   434             return null;
   434             return null;
   435         }
   435         }
   436     }
   436     }
   437 
   437