mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-10 20:44:29 +08:00
gradle support
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user