Skip to content

Commit

Permalink
modify add return param
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Oct 21, 2015
1 parent c883344 commit cc8b2b1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions blade-kit/src/main/java/blade/kit/json/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ public JSONObject(Map map) {
super(map);
}

public boolean put(String key, Object value){
return this.put(key, value);
public JSONObject put(String key, Object value){
this.put(key, value);
return this;
}

public Object put(Object key, Object value){
return this.put(key, value);
public JSONObject put(Object key, Object value){
this.put(key, value);
return this;
}

public Object get(String key) throws JSONException {
Expand Down

0 comments on commit cc8b2b1

Please sign in to comment.