From 40f866f5cd004a86ee74e882c6a13ab6e40af0c2 Mon Sep 17 00:00:00 2001 From: Moandji Ezana Date: Wed, 15 Jun 2016 09:42:47 -0400 Subject: [PATCH] Mention in README that transient fields are not serialised --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1736d1b..e499377 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ toml.containsTableArray("a"); // false ### Converting Objects To TOML -You can write any arbitrary object to a TOML `String`, `File`, `Writer`, or `OutputStream` with a `TomlWriter`. Each TomlWriter instance is customisable, immutable and threadsafe, so it can be reused and passed around. Constants are ignored. +You can write any arbitrary object to a TOML `String`, `File`, `Writer`, or `OutputStream` with a `TomlWriter`. Each TomlWriter instance is customisable, immutable and threadsafe, so it can be reused and passed around. Constants and transient fields are ignored. ```java class AClass { @@ -277,11 +277,11 @@ class BClass { BClass obj = new BClass(); obj.aMap.put("item", 1); -TomlWriter tomlWriter = new TomlWriter.Builder(). - indentValuesBy(2). - indentTablesBy(4). - padArrayDelimitersBy(3). - build(); +TomlWriter tomlWriter = new TomlWriter.Builder() + .indentValuesBy(2) + .indentTablesBy(4) + .padArrayDelimitersBy(3) + .build(); String tomlString = tomlWriter.write(obj);