< prev index next >

src/java.base/share/classes/sun/security/tools/keytool/Main.java

Print this page

        

@@ -2416,13 +2416,13 @@
                         ("Your.keystore.contains.keyStore.size.entries"));
         Object[] source = {keyStore.size()};
         out.println(form.format(source));
         out.println();
 
-        List<String> aliases = Collections.list(keyStore.aliases());
-        aliases.sort(String::compareTo);
-        for (String alias : aliases) {
+        for (Enumeration<String> e = keyStore.aliases();
+                                        e.hasMoreElements(); ) {
+            String alias = e.nextElement();
             doPrintEntry("<" + alias + ">", alias, out);
             if (verbose || rfc) {
                 out.println(rb.getString("NEWLINE"));
                 out.println(rb.getString
                         ("STAR"));
< prev index next >