Describe the current behavior
For example:
node.getType() == NodeType.SWITCH && ((SwitchNode) node).isOpen()
Describe the expected behavior
node instanceof SwitchNode switchNode && switchNode.isOpen()
Describe the motivation
cleaner code
Extra Information
No response
Describe the current behavior
For example:
node.getType() == NodeType.SWITCH && ((SwitchNode) node).isOpen()Describe the expected behavior
node instanceof SwitchNode switchNode && switchNode.isOpen()Describe the motivation
cleaner code
Extra Information
No response