@@ -287,8 +287,8 @@ private void removeKeyChain(AKMAlias filter) throws IllegalArgumentException {
287287 * @param filter AKMAlias object used as filter
288288 * @return all aliases from KEYCHAIN_ALIASES which satisfy alias.matches(filter)
289289 */
290- private static <T > Collection <String > filterAliases (Collection <T > aliases , AKMAlias filter ) {
291- Collection <String > filtered = new LinkedList <>();
290+ private static <T > LinkedList <String > filterAliases (Collection <T > aliases , AKMAlias filter ) {
291+ LinkedList <String > filtered = new LinkedList <>();
292292 for (Object alias : aliases ) {
293293 if (new AKMAlias (alias .toString ()).matches (filter )) {
294294 filtered .add (((String ) alias ));
@@ -308,7 +308,7 @@ private static <T> Collection<String> filterAliases(Collection<T> aliases, AKMAl
308308 private @ NonNull String [] getAliases (Set <KeyType > keyTypes , Principal [] issuers , String hostname , Integer port ) {
309309 // Check keychain aliases
310310 AKMAlias filter = new AKMAlias (KEYCHAIN , null , hostname , port );
311- List <String > validAliases = new LinkedList <>( filterAliases (sharedPreferences .getStringSet (KEYCHAIN_ALIASES , new HashSet <>()), filter ) );
311+ List <String > validAliases = filterAliases (sharedPreferences .getStringSet (KEYCHAIN_ALIASES , new HashSet <>()), filter );
312312
313313 Log_OC .d (TAG , "getAliases(keyTypes=" + (keyTypes != null ? Arrays .toString (keyTypes .toArray ()) : null )
314314 + ", issuers=" + Arrays .toString (issuers )
0 commit comments