From 7a5efcfa21ff63f2006b5b59ba81851b5fd1d6fd Mon Sep 17 00:00:00 2001 From: weisj Date: Mon, 27 Jul 2020 09:47:00 +0200 Subject: [PATCH] Fix build failure --- .../weisj/darklaf/components/tree/TristateTreeNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/github/weisj/darklaf/components/tree/TristateTreeNode.java b/core/src/main/java/com/github/weisj/darklaf/components/tree/TristateTreeNode.java index c7455a58..74703d6e 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/tree/TristateTreeNode.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/tree/TristateTreeNode.java @@ -80,7 +80,7 @@ public class TristateTreeNode extends DefaultMutableTreeNode implements LabeledT super.setUserObject(state); if (!isLeaf() && !invokedByChild) { if (!state.isIndeterminate()) { - for (TreeNode node : children) { + for (Object node : children) { if (node instanceof TristateTreeNode) { ((TristateTreeNode) node).setState(state, true, false); } @@ -114,7 +114,7 @@ public class TristateTreeNode extends DefaultMutableTreeNode implements LabeledT public TristateState getEffectiveState() { TristateState state = null; - for (TreeNode node : children) { + for (Object node : children) { if (node instanceof TristateTreeNode) { TristateState nodeState = ((TristateTreeNode) node).getUserObject(); if (state == null) state = nodeState;