Skip to content

Commit 349a209

Browse files
author
John J. Aylward
committed
Merge remote-tracking branch 'upstream/master' into EnumCleanup
2 parents 7851e9b + 7232a95 commit 349a209

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

JSONArray.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ of this software and associated documentation files (the "Software"), to deal
7878
* </ul>
7979
*
8080
* @author JSON.org
81-
* @version 2016-05-20
81+
* @version 2016-08/15
8282
*/
8383
public class JSONArray implements Iterable<Object> {
8484

@@ -961,7 +961,7 @@ public JSONArray put(int index, Object value) throws JSONException {
961961
}
962962

963963
/**
964-
* Creates a JSONPointer using an intialization string and tries to
964+
* Creates a JSONPointer using an initialization string and tries to
965965
* match it to an item within this JSONArray. For example, given a
966966
* JSONArray initialized with this document:
967967
* <pre>

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);
@@ -1885,13 +1887,13 @@ public Writer write(Writer writer, int indentFactor, int indent)
18851887
}
18861888

18871889
/**
1888-
* Returns a java.util.Map containing all of the entrys in this object.
1890+
* Returns a java.util.Map containing all of the entries in this object.
18891891
* If an entry in the object is a JSONArray or JSONObject it will also
18901892
* be converted.
18911893
* <p>
18921894
* Warning: This method assumes that the data structure is acyclical.
18931895
*
1894-
* @return a java.util.Map containing the entrys of this object
1896+
* @return a java.util.Map containing the entries of this object
18951897
*/
18961898
public Map<String, Object> toMap() {
18971899
Map<String, Object> results = new HashMap<String, Object>();

0 commit comments

Comments
 (0)