jdk/src/share/classes/sun/tools/jstat/SyntaxException.java
changeset 24871 224e298c3978
parent 23711 95fb268275e3
--- a/jdk/src/share/classes/sun/tools/jstat/SyntaxException.java	Wed Jun 11 15:47:53 2014 +0200
+++ b/jdk/src/share/classes/sun/tools/jstat/SyntaxException.java	Thu Jun 12 10:32:19 2014 +0200
@@ -62,14 +62,14 @@
                   + ", Found " + found.toMessage();
     }
 
-    public SyntaxException(int lineno, Set expected, Token found) {
+    public SyntaxException(int lineno, Set<String> expected, Token found) {
         StringBuilder msg = new StringBuilder();
 
         msg.append("Syntax error at line " + lineno + ": Expected one of \'");
 
         boolean first = true;
-        for (Iterator i = expected.iterator(); i.hasNext(); /* empty */) {
-            String keyWord = (String)i.next();
+        for (Iterator<String> i = expected.iterator(); i.hasNext(); /* empty */) {
+            String keyWord = i.next();
             if (first) {
                 msg.append(keyWord);
                 first = false;