Skip to content

Commit

Permalink
Merge pull request #185 from douglascrockford/write-with-indent-params
Browse files Browse the repository at this point in the history
change to public: write(writer, indentfactor, indent)
  • Loading branch information
stleary committed Dec 30, 2015
2 parents 03dd662 + 8688494 commit e6f5047
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion JSONArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -1083,14 +1083,16 @@ public Writer write(Writer writer) throws JSONException {
* <p>
* Warning: This method assumes that the data structure is acyclical.
*
* @param writer
* Writes the serialized JSON
* @param indentFactor
* The number of spaces to add to each level of indentation.
* @param indent
* The indention of the top level.
* @return The writer.
* @throws JSONException
*/
Writer write(Writer writer, int indentFactor, int indent)
public Writer write(Writer writer, int indentFactor, int indent)
throws JSONException {
try {
boolean commanate = false;
Expand Down
8 changes: 7 additions & 1 deletion JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1781,10 +1781,16 @@ static final void indent(Writer writer, int indent) throws IOException {
* <p>
* Warning: This method assumes that the data structure is acyclical.
*
* @param writer
* Writes the serialized JSON
* @param indentFactor
* The number of spaces to add to each level of indentation.
* @param indent
* The indention of the top level.
* @return The writer.
* @throws JSONException
*/
Writer write(Writer writer, int indentFactor, int indent)
public Writer write(Writer writer, int indentFactor, int indent)
throws JSONException {
try {
boolean commanate = false;
Expand Down

0 comments on commit e6f5047

Please sign in to comment.