remove redundant casts

This commit is contained in:
Jörg Prante 2021-11-27 18:13:43 +01:00
parent c48f9db95a
commit 81ac720663

View file

@ -288,10 +288,10 @@ public class Json implements DataStructure {
String sectName = sr[0]; String sectName = sr[0];
String restPath = sr[1]; String restPath = sr[1];
if (node instanceof MapNode) { if (node instanceof MapNode) {
return internalGetNode((Node<?>) ((MapNode) node).get().get(sectName), restPath); return internalGetNode(((MapNode) node).get().get(sectName), restPath);
} else if (node instanceof ListNode) { } else if (node instanceof ListNode) {
try { try {
return internalGetNode((Node<?>) ((ListNode) node).get().get(Integer.parseInt(sectName)), restPath); return internalGetNode(((ListNode) node).get().get(Integer.parseInt(sectName)), restPath);
} catch (NumberFormatException ignore) { } catch (NumberFormatException ignore) {
// //
} }