mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Warnings fixed
GitOrigin-RevId: 777ad9385511d19d8ea5a27413a0711f610487c8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4f9e77652d
commit
850eeea88c
+2
-3
@@ -83,7 +83,6 @@ import java.util.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public class StructureViewComponent extends SimpleToolWindowPanel implements TreeActionsOwner, DataProvider, StructureView {
|
||||
private static final Logger LOG = Logger.getInstance(StructureViewComponent.class);
|
||||
@@ -828,7 +827,7 @@ public class StructureViewComponent extends SimpleToolWindowPanel implements Tre
|
||||
return provider == null ? 2 : provider.getMinimumAutoExpandDepth();
|
||||
}
|
||||
|
||||
private StructureViewTreeElement getStructureTreeElement(Object pathComponent) {
|
||||
private static StructureViewTreeElement getStructureTreeElement(Object pathComponent) {
|
||||
if (!(pathComponent instanceof DefaultMutableTreeNode node)) return null;
|
||||
if (!(node.getUserObject() instanceof AbstractTreeNode<?> abstractTreeNode)) return null;
|
||||
if (!(abstractTreeNode.getValue() instanceof StructureViewTreeElement treeElement)) return null;
|
||||
@@ -994,7 +993,7 @@ public class StructureViewComponent extends SimpleToolWindowPanel implements Tre
|
||||
if (handled) {
|
||||
event.consume();
|
||||
return;
|
||||
};
|
||||
}
|
||||
}
|
||||
super.processMouseEvent(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user