Another jdk9 fix for Swing's JTree TreeNode

This commit is contained in:
Andreas Dangel
2014-11-02 12:18:45 +01:00
parent 0450f9a9d7
commit 61b11beda7

View File

@ -426,7 +426,7 @@ public class Designer implements ClipboardOwner {
// Traverse children
TreeNode node = (TreeNode) parent.getLastPathComponent();
if (node.getChildCount() >= 0) {
for (Enumeration<TreeNode> e = node.children(); e.hasMoreElements();) {
for (Enumeration<? extends TreeNode> e = node.children(); e.hasMoreElements();) {
TreeNode n = e.nextElement();
TreePath path = parent.pathByAddingChild(n);
expandAll(path, expand);