src/share/classes/javax/swing/plaf/basic/BasicTreeUI.java
Print this page
@@ -1146,11 +1146,11 @@
Rectangle paintBounds = g.getClipBounds();
Insets insets = tree.getInsets();
TreePath initialPath = getClosestPathForLocation
(tree, 0, paintBounds.y);
- Enumeration paintingEnumerator = treeState.getVisiblePathsFrom
+ Enumeration<?> paintingEnumerator = treeState.getVisiblePathsFrom
(initialPath);
int row = treeState.getRowForPath(initialPath);
int endY = paintBounds.y + paintBounds.height;
drawingCache.clear();
@@ -1692,11 +1692,11 @@
protected void updateExpandedDescendants(TreePath path) {
completeEditing();
if(treeState != null) {
treeState.setExpandedState(path, true);
- Enumeration descendants = tree.getExpandedDescendants(path);
+ Enumeration<?> descendants = tree.getExpandedDescendants(path);
if(descendants != null) {
while(descendants.hasMoreElements()) {
path = (TreePath)descendants.nextElement();
treeState.setExpandedState(path, true);