remove redundant casts
This commit is contained in:
parent
c48f9db95a
commit
81ac720663
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue