mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 03:06:03 +08:00
Merge branch 'master' of github.com:stleary/JSON-java into OptimizeOpt
This commit is contained in:
@@ -183,7 +183,7 @@ public class JSONArray implements Iterable<Object> {
|
||||
|
||||
@Override
|
||||
public Iterator<Object> iterator() {
|
||||
return myArrayList.iterator();
|
||||
return this.myArrayList.iterator();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1314,6 +1314,7 @@ public class JSONArray implements Iterable<Object> {
|
||||
* @return a printable, displayable, transmittable representation of the
|
||||
* array.
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
try {
|
||||
return this.toString(0);
|
||||
@@ -1323,7 +1324,7 @@ public class JSONArray implements Iterable<Object> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a prettyprinted JSON text of this JSONArray. Warning: This method
|
||||
* Make a pretty-printed JSON text of this JSONArray. Warning: This method
|
||||
* assumes that the data structure is acyclical.
|
||||
*
|
||||
* @param indentFactor
|
||||
@@ -1365,7 +1366,7 @@ public class JSONArray implements Iterable<Object> {
|
||||
* @param indentFactor
|
||||
* The number of spaces to add to each level of indentation.
|
||||
* @param indent
|
||||
* The indention of the top level.
|
||||
* The indentation of the top level.
|
||||
* @return The writer.
|
||||
* @throws JSONException
|
||||
*/
|
||||
|
Reference in New Issue
Block a user