Skip to content

Commit 8688494

Browse files
committed
change to public, write(writer, indentfactor, indent)
1 parent 03dd662 commit 8688494

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

JSONArray.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,14 +1083,16 @@ public Writer write(Writer writer) throws JSONException {
10831083
* <p>
10841084
* Warning: This method assumes that the data structure is acyclical.
10851085
*
1086+
* @param writer
1087+
* Writes the serialized JSON
10861088
* @param indentFactor
10871089
* The number of spaces to add to each level of indentation.
10881090
* @param indent
10891091
* The indention of the top level.
10901092
* @return The writer.
10911093
* @throws JSONException
10921094
*/
1093-
Writer write(Writer writer, int indentFactor, int indent)
1095+
public Writer write(Writer writer, int indentFactor, int indent)
10941096
throws JSONException {
10951097
try {
10961098
boolean commanate = false;

JSONObject.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,10 +1781,16 @@ static final void indent(Writer writer, int indent) throws IOException {
17811781
* <p>
17821782
* Warning: This method assumes that the data structure is acyclical.
17831783
*
1784+
* @param writer
1785+
* Writes the serialized JSON
1786+
* @param indentFactor
1787+
* The number of spaces to add to each level of indentation.
1788+
* @param indent
1789+
* The indention of the top level.
17841790
* @return The writer.
17851791
* @throws JSONException
17861792
*/
1787-
Writer write(Writer writer, int indentFactor, int indent)
1793+
public Writer write(Writer writer, int indentFactor, int indent)
17881794
throws JSONException {
17891795
try {
17901796
boolean commanate = false;

0 commit comments

Comments
 (0)