From 7b7906d0eddd8a35715c109be8fb1176d25f683e Mon Sep 17 00:00:00 2001 From: "moandji.ezana" Date: Sun, 8 Feb 2015 23:16:06 +0200 Subject: [PATCH] Updated change log and readme --- CHANGELOG.md | 14 ++++++++++++-- README.md | 4 ++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35366d1..7f7b010 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index f3a69a8..39a4d0e 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Use the getters to retrieve the data: * `getBoolean(String)` * `getLong(String)` * `getDouble(String)` -* `getList(String, Class)` +* `getList(String)` * `getTable(String)` returns a new Toml instance containing only the keys in that table. * `getTables(String)`, for table arrays, returns `List`. @@ -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 ports = toml.getList("database.ports", Long.class); +List ports = toml.getList("database.ports"); String password = toml.getString("database.credentials.password"); Toml servers = toml.getTable("servers");