Skip to content

Commit 7232a95

Browse files
authored
Update JSONObject.java
Fixed some typos committed in stleary#249, since reverted, tracking issue is stleary#263
1 parent f96f505 commit 7232a95

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

JSONObject.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ of this software and associated documentation files (the "Software"), to deal
9393
* </ul>
9494
*
9595
* @author JSON.org
96-
* @version 2016-05-20
96+
* @version 2016-08-15
9797
*/
9898
public class JSONObject {
9999
/**
@@ -132,6 +132,7 @@ public boolean equals(Object object) {
132132
*
133133
* @return The string "null".
134134
*/
135+
@Override
135136
public String toString() {
136137
return "null";
137138
}
@@ -1621,6 +1622,7 @@ public JSONArray toJSONArray(JSONArray names) throws JSONException {
16211622
* brace)</small> and ending with <code>}</code>&nbsp;<small>(right
16221623
* brace)</small>.
16231624
*/
1625+
@Override
16241626
public String toString() {
16251627
try {
16261628
return this.toString(0);
@@ -1880,13 +1882,13 @@ public Writer write(Writer writer, int indentFactor, int indent)
18801882
}
18811883

18821884
/**
1883-
* Returns a java.util.Map containing all of the entrys in this object.
1885+
* Returns a java.util.Map containing all of the entries in this object.
18841886
* If an entry in the object is a JSONArray or JSONObject it will also
18851887
* be converted.
18861888
* <p>
18871889
* Warning: This method assumes that the data structure is acyclical.
18881890
*
1889-
* @return a java.util.Map containing the entrys of this object
1891+
* @return a java.util.Map containing the entries of this object
18901892
*/
18911893
public Map<String, Object> toMap() {
18921894
Map<String, Object> results = new HashMap<String, Object>();

0 commit comments

Comments
 (0)