Skip to content

Commit

Permalink
bug fixed for issue 483, #483
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Feb 28, 2016
1 parent 994ef3c commit 11865c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/alibaba/fastjson/JSONPath.java
Expand Up @@ -276,9 +276,9 @@ public static void arrayAdd(Object rootObject, String path, Object... values) {
jsonpath.arrayAdd(rootObject, values);
}

public static void set(Object rootObject, String path, Object value) {
public static boolean set(Object rootObject, String path, Object value) {
JSONPath jsonpath = compile(path);
jsonpath.set(rootObject, value);
return jsonpath.set(rootObject, value);
}

public static JSONPath compile(String path) {
Expand Down

0 comments on commit 11865c6

Please sign in to comment.