--- old/src/share/classes/javax/swing/tree/DefaultMutableTreeNode.java 2014-08-07 14:51:26.000000000 -0700 +++ new/src/share/classes/javax/swing/tree/DefaultMutableTreeNode.java 2014-08-07 14:51:26.000000000 -0700 @@ -1308,7 +1308,7 @@ } private final class PreorderEnumeration implements Enumeration { - private final Stack> stack = new Stack<>(); + private final Stack> stack = new Stack<>(); public PreorderEnumeration(TreeNode rootNode) { super(); @@ -1322,10 +1322,9 @@ } public TreeNode nextElement() { - Enumeration enumer = stack.peek(); + Enumeration enumer = stack.peek(); TreeNode node = enumer.nextElement(); - @SuppressWarnings("unchecked") - Enumeration children = node.children(); + Enumeration children = node.children(); if (!enumer.hasMoreElements()) { stack.pop(); @@ -1342,7 +1341,7 @@ final class PostorderEnumeration implements Enumeration { protected TreeNode root; - protected Enumeration children; + protected Enumeration children; protected Enumeration subtree; public PostorderEnumeration(TreeNode rootNode) {