Repository: commons-csv Updated Branches: refs/heads/master fa437cb92 -> 5f14d16a6
[CSV-193] Fix incorrect method name 'withFirstRowAsHeader' in user guide.</action> Project: http://git-wip-us.apache.org/repos/asf/commons-csv/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-csv/commit/5f14d16a Tree: http://git-wip-us.apache.org/repos/asf/commons-csv/tree/5f14d16a Diff: http://git-wip-us.apache.org/repos/asf/commons-csv/diff/5f14d16a Branch: refs/heads/master Commit: 5f14d16a66f31e11253e3daab61113cdacf33587 Parents: fa437cb Author: Gary Gregory <ggreg...@apache.org> Authored: Thu Aug 11 15:30:39 2016 -0700 Committer: Gary Gregory <ggreg...@apache.org> Committed: Thu Aug 11 15:30:39 2016 -0700 ---------------------------------------------------------------------- src/changes/changes.xml | 1 + src/site/xdoc/user-guide.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-csv/blob/5f14d16a/src/changes/changes.xml ---------------------------------------------------------------------- diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ee0070a..c5f94d6 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -39,6 +39,7 @@ </properties> <body> <release version="1.5" date="2016-MM-DD" description="Bug fix release"> + <action issue="CSV-193" type="fix" dev="ggregory" due-to="Matthias Wiehl">Fix incorrect method name 'withFirstRowAsHeader' in user guide.</action> <action issue="CSV-171" type="fix" dev="ggregory" due-to="Gary Gregory, Michael Graessle, Adrian Bridgett">Negative numeric values in the first column are always quoted in minimal mode.</action> <action issue="CSV-187" type="update" dev="ggregory" due-to="Gary Gregory">Update platform requirement from Java 6 to 7.</action> <action issue="CSV-189" type="add" dev="ggregory" due-to="Peter Holzwarth, Gary Gregory">CSVParser: Add factory method accepting InputStream.</action> http://git-wip-us.apache.org/repos/asf/commons-csv/blob/5f14d16a/src/site/xdoc/user-guide.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/user-guide.xml b/src/site/xdoc/user-guide.xml index e0d5694..1f89ebe 100644 --- a/src/site/xdoc/user-guide.xml +++ b/src/site/xdoc/user-guide.xml @@ -143,7 +143,7 @@ for (CSVRecord record : records) { Some CSV files define header names in their first record. If configured, Apache Commons CSV can parse the header names from the first record: <source>Reader in = new FileReader("path/to/file.csv"); -Iterable<CSVRecord> records = CSVFormat.RFC4180.withFirstRowAsHeader().parse(in); +Iterable<CSVRecord> records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(in); for (CSVRecord record : records) { String id = record.get("ID"); String customerNo = record.get("CustomerNo");