gradle support

This commit is contained in:
stleary
2020-05-22 11:17:44 -05:00
parent 1da2b984cd
commit 2b0a8838ef
32 changed files with 647 additions and 131 deletions

View File

@@ -93,6 +93,7 @@ public class JSONWriter {
/**
* Make a fresh JSONWriter. It can be used to build one JSON text.
* @param w an appendable object
*/
public JSONWriter(Appendable w) {
this.comma = false;
@@ -373,7 +374,7 @@ public class JSONWriter {
* <code>false</code>.
* @param b A boolean.
* @return this
* @throws JSONException
* @throws JSONException if a called function has an error
*/
public JSONWriter value(boolean b) throws JSONException {
return this.append(b ? "true" : "false");
@@ -393,7 +394,7 @@ public class JSONWriter {
* Append a long value.
* @param l A long.
* @return this
* @throws JSONException
* @throws JSONException if a called function has an error
*/
public JSONWriter value(long l) throws JSONException {
return this.append(Long.toString(l));