mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 07:59:21 +08:00
Merge pull request #95 from edwardaa/master
Doc fix for JsonWriter.serializeNulls
This commit is contained in:
@@ -239,7 +239,7 @@ public class JsonWriter implements Closeable, Flushable {
|
||||
|
||||
/**
|
||||
* Sets whether object members are serialized when their value is null.
|
||||
* This has no impact on array elements. The default is true.
|
||||
* This has no impact on array elements. The default is false.
|
||||
*/
|
||||
public final void setSerializeNulls(boolean serializeNulls) {
|
||||
this.serializeNulls = serializeNulls;
|
||||
@@ -247,7 +247,7 @@ public class JsonWriter implements Closeable, Flushable {
|
||||
|
||||
/**
|
||||
* Returns true if object members are serialized when their value is null.
|
||||
* This has no impact on array elements. The default is true.
|
||||
* This has no impact on array elements. The default is false.
|
||||
*/
|
||||
public final boolean getSerializeNulls() {
|
||||
return serializeNulls;
|
||||
|
Reference in New Issue
Block a user