From 61b11beda7f95df9cdb3a3ad95ea7b683c7a4866 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sun, 2 Nov 2014 12:18:45 +0100 Subject: [PATCH] Another jdk9 fix for Swing's JTree TreeNode --- .../main/java/net/sourceforge/pmd/util/designer/Designer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/util/designer/Designer.java b/pmd-core/src/main/java/net/sourceforge/pmd/util/designer/Designer.java index b6732a2f93..10c93de09b 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/util/designer/Designer.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/util/designer/Designer.java @@ -426,7 +426,7 @@ public class Designer implements ClipboardOwner { // Traverse children TreeNode node = (TreeNode) parent.getLastPathComponent(); if (node.getChildCount() >= 0) { - for (Enumeration e = node.children(); e.hasMoreElements();) { + for (Enumeration e = node.children(); e.hasMoreElements();) { TreeNode n = e.nextElement(); TreePath path = parent.pathByAddingChild(n); expandAll(path, expand);