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 e7b6866f09
commit c57ed0051e
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -282,7 +282,7 @@
<dependency> <dependency>
<groupId>org.noear</groupId> <groupId>org.noear</groupId>
<artifactId>snack3</artifactId> <artifactId>snack3</artifactId>
<version>3.1.14</version> <version>3.2.24</version>
</dependency> </dependency>
<dependency> <dependency>