jdk/test/sun/security/mscapi/SignUsingSHA2withRSA.java
changeset 33868 9c1bde39fe18
parent 12700 9c9ad46c7c40
--- a/jdk/test/sun/security/mscapi/SignUsingSHA2withRSA.java	Mon Nov 16 10:14:46 2015 -0800
+++ b/jdk/test/sun/security/mscapi/SignUsingSHA2withRSA.java	Wed Nov 18 08:43:52 2015 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -58,12 +58,12 @@
         ks.load(null, null);
         System.out.println("Loaded keystore: Windows-MY");
 
-        Enumeration e = ks.aliases();
+        Enumeration<String> e = ks.aliases();
         PrivateKey privateKey = null;
         PublicKey publicKey = null;
 
         while (e.hasMoreElements()) {
-            String alias = (String) e.nextElement();
+            String alias = e.nextElement();
             if (alias.equals("6753664")) {
                 System.out.println("Loaded entry: " + alias);
                 privateKey = (PrivateKey) ks.getKey(alias, null);