Browse Source

Fix build failure

pull/198/head
weisj 4 years ago
parent
commit
7a5efcfa21
  1. 4
      core/src/main/java/com/github/weisj/darklaf/components/tree/TristateTreeNode.java

4
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); super.setUserObject(state);
if (!isLeaf() && !invokedByChild) { if (!isLeaf() && !invokedByChild) {
if (!state.isIndeterminate()) { if (!state.isIndeterminate()) {
for (TreeNode node : children) { for (Object node : children) {
if (node instanceof TristateTreeNode) { if (node instanceof TristateTreeNode) {
((TristateTreeNode) node).setState(state, true, false); ((TristateTreeNode) node).setState(state, true, false);
} }
@ -114,7 +114,7 @@ public class TristateTreeNode extends DefaultMutableTreeNode implements LabeledT
public TristateState getEffectiveState() { public TristateState getEffectiveState() {
TristateState state = null; TristateState state = null;
for (TreeNode node : children) { for (Object node : children) {
if (node instanceof TristateTreeNode) { if (node instanceof TristateTreeNode) {
TristateState nodeState = ((TristateTreeNode) node).getUserObject(); TristateState nodeState = ((TristateTreeNode) node).getUserObject();
if (state == null) state = nodeState; if (state == null) state = nodeState;

Loading…
Cancel
Save