< prev index next >

src/com/sun/javatest/tool/HelpMenu.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

@@ -116,12 +116,12 @@
         }
 
         // for the active test suites, add any available help sets to the menu
         // e.g. those specified in the testsuite.jtt
         int count = 0;
-        for (Iterator iter = loadedTestSuites.iterator(); iter.hasNext(); ) {
-            TestSuite ts = (TestSuite) (iter.next());
+        for (Iterator<TestSuite> iter = loadedTestSuites.iterator(); iter.hasNext(); ) {
+            TestSuite ts = (iter.next());
             JMenuItem[] menuItems = getMenuItems(ts, count);
             if (menuItems != null && menuItems.length > 0) {
                 for (int i = 0; i < menuItems.length; i++) {
                     JMenuItem mi = menuItems[i];
                     // mark the entry as a dynamic entry
< prev index next >