Updated change log and readme

This commit is contained in:
moandji.ezana 2015-02-08 23:16:06 +02:00
parent 5a9dd3c58c
commit 7b7906d0ed
2 changed files with 14 additions and 4 deletions

View file

@ -1,9 +1,19 @@
# toml4j Changelog
## NEXT
## Unreleased
### Changed
* Toml#getList(String) replaced Toml#getList(String, Class)
### Fixed
* Fixed short-form Unicode escapes
* Fixed exponent handling
* Dropped dependency on Parboiled
### Misc.
* Dropped dependency on Parboiled and its significant transitive dependencies
* Updated Gson to 2.3.1
## 0.3.1 / 2014-12-16

View file

@ -104,7 +104,7 @@ Use the getters to retrieve the data:
* `getBoolean(String)`
* `getLong(String)`
* `getDouble(String)`
* `getList(String, Class<T>)`
* `getList(String)`
* `getTable(String)` returns a new Toml instance containing only the keys in that table.
* `getTables(String)`, for table arrays, returns `List<Toml>`.
@ -151,7 +151,7 @@ Toml toml = new Toml().parse(getTomlFile());
String title = toml.getString("title");
String subTitle = toml.getString("\"sub title\"");
Boolean enabled = toml.getBoolean("database.enabled");
List<Long> ports = toml.getList("database.ports", Long.class);
List<Long> ports = toml.getList("database.ports");
String password = toml.getString("database.credentials.password");
Toml servers = toml.getTable("servers");