< prev index next >
src/com/sun/javatest/exec/TestTree.java
Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg
@@ -169,14 +169,14 @@
// below because this situation occurs.
if (currModel == null || currModel.getRoot() == null)
return null;
TreePath[] paths = new TreePath[0];
- Enumeration e = getDescendantToggledPaths(new TreePath(currModel.getRoot()));
+ Enumeration<TreePath> e = getDescendantToggledPaths(new TreePath(currModel.getRoot()));
while (e != null && e.hasMoreElements()) {
- TreePath tp = (TreePath)(e.nextElement());
+ TreePath tp = (e.nextElement());
if (!isVisible(tp)) // if we can't see it, we don't care
continue;
if (!isExpanded(tp)) // if it's not expanded, we don't need it
continue;
< prev index next >