update snack3 version to 3.2.24 #425

This commit is contained in:
Francis Dong
2022-05-16 09:12:28 +08:00
committed by dxfeng10
parent edddf4b595
commit 5d1d91ba76
2 changed files with 3 additions and 3 deletions

View File

@@ -70,12 +70,12 @@ public class PathMapping {
}
ONode cur = target;
for (int i = 0; i < keys.length - 1; i++) {
cur = cur.get(keys[i]);
cur = cur.getOrNew(keys[i]);
}
if ((obj instanceof ONode && ((ONode) obj).isArray()) || obj instanceof Collection
|| (obj instanceof ONode && ((ONode) obj).isObject()) || obj instanceof Map) {
ONode subNode = cur.get(keys[keys.length - 1]);
ONode subNode = cur.getOrNew(keys[keys.length - 1]);
if ((obj instanceof ONode && ((ONode) obj).isArray()) || obj instanceof Collection) {
if (subNode.isArray()) {
if (obj instanceof ONode) {