Commit Graph

1806 Commits

Author SHA1 Message Date
Gary D. Gregory f9871c5d35 [CSV-121] Exception that the header contains duplicate names when the column names are empty. Add a test that shows that TWO missing header is not OK.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1602168 13f79535-47bb-0310-9956-ffa450edef68
2014-06-12 13:59:33 +00:00
Gary D. Gregory 5a9436d462 [CSV-121] Exception that the header contains duplicate names when the column names are empty. Add a test that shows that ONE missing header is OK.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1602166 13f79535-47bb-0310-9956-ffa450edef68
2014-06-12 13:57:48 +00:00
Gary D. Gregory 1282503fb9 <action issue="CSV-120" type="add" dev="ggregory" due-to="Sergei Lebedev">CSVFormat#withHeader doesn't work with CSVPrinter</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1601517 13f79535-47bb-0310-9956-ffa450edef68
2014-06-09 22:21:22 +00:00
Gary D. Gregory 65f110ec14 <action issue="CSV-119" type="add" dev="ggregory" due-to="Sergei Lebedev">CSVFormat is missing a print(...) method</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1599285 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 18:04:49 +00:00
Gary D. Gregory 2480dffa6d <action issue="CSV-118" type="fix" dev="ggregory" due-to="Enrique Lara">CSVRecord.toMap() throws NPE on formats with no headers.</action>
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1594966 13f79535-47bb-0310-9956-ffa450edef68
2014-05-15 16:26:26 +00:00
Gary D. Gregory 0331565fba Format with 2 spaces per XML indent and 120 chars line width.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1594965 13f79535-47bb-0310-9956-ffa450edef68
2014-05-15 16:24:56 +00:00
Sebastian Bazley 88a7e755e6 CSV-113 Check whether ISE/IAE are being used appropriately
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1593148 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 22:12:56 +00:00
Sebastian Bazley 16b175b01a tab police
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1593097 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 18:12:10 +00:00
Sebastian Bazley 7945a4f24c Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1593094 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 18:09:06 +00:00
Sebastian Bazley 35d101c2ad CSV-114 CSVFormat constructor should reject a header array with duplicate entries
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1593076 13f79535-47bb-0310-9956-ffa450edef68
2014-05-07 17:27:31 +00:00
Benedikt Ritter 692a1e362d Make CSVFormat constructor package private since it is only used in CSVFormat.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592833 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 18:37:15 +00:00
Benedikt Ritter 4698a563dc Add missing fields to hashcode and equals methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592832 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 18:32:38 +00:00
Benedikt Ritter 3e8fe990dd Add some pointers for contirbutors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592830 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 18:24:17 +00:00
Benedikt Ritter 85226d80e6 CSV-115: Simplify boolean expressions in CSVRecord. This also closes #1 from github. Thanks to Furkan Kamaci.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592822 13f79535-47bb-0310-9956-ffa450edef68
2014-05-06 18:11:37 +00:00
Sebastian Bazley a3260ed930 Avoid IDE warning
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592639 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 22:03:17 +00:00
Benedikt Ritter d030030d3d Shamelessly steal the support section from commons lang
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592616 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 19:26:41 +00:00
Benedikt Ritter ac1e5a4486 Correct indentation of new TagList config
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592612 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 19:07:11 +00:00
Benedikt Ritter 6981b1110b Drop deprecated configuration of TagList plugin and replace it with a finer grained configuration provided by Brend Eckenfels
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592610 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 19:01:29 +00:00
Benedikt Ritter c08219e0d7 Document reliance of parse(File, CSVFormat) to default encoding
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592604 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 18:45:55 +00:00
Benedikt Ritter 129a8db75e Remove obsolete comment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592603 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 18:45:29 +00:00
Benedikt Ritter 07a73d2824 Fix checkstyle error
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592600 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 18:36:31 +00:00
Benedikt Ritter 4e89209720 Update checkstyle version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592598 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 18:36:16 +00:00
Benedikt Ritter a3da0a7a5a CSV now has it's own jira project
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592596 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 18:25:33 +00:00
Benedikt Ritter 7d51af9404 Make checkstyle happy (line is longer than 120 characters)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592382 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 17:01:07 +00:00
Benedikt Ritter 2fdf2c8a19 Document all fixed issues
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592380 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 16:58:53 +00:00
Benedikt Ritter ce4e72701b CSV-112: HeaderMap is inconsistent when it is parsed from an input with duplicate columns names. Reported by Romain Gossé
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592371 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 16:22:34 +00:00
Benedikt Ritter c84328e64a Fix JavaDoc errors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592365 13f79535-47bb-0310-9956-ffa450edef68
2014-05-04 16:08:56 +00:00
Gary D. Gregory 9f03b06a1e [CSV-111] CSVRecord.toMap() fails if row length shorter than header length.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1589281 13f79535-47bb-0310-9956-ffa450edef68
2014-04-22 20:20:17 +00:00
Gary D. Gregory a84668e0ea Revert.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1585716 13f79535-47bb-0310-9956-ffa450edef68
2014-04-08 13:02:01 +00:00
Gary D. Gregory 966cd208ca [CSV-110] Add ability to parse single lines.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1585496 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 14:50:26 +00:00
Gary D. Gregory 51f226d0f8 Add org.apache.commons.csv.CSVParserTest.testGetOneLineOneParser(). See discussion in [CSV-110].
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1585492 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 14:31:03 +00:00
Gary D. Gregory 0f3b3367c3 Add org.apache.commons.csv.CSVParserTest.testGetOneLineOneParser(). See discussion in [CSV-110].
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1585491 13f79535-47bb-0310-9956-ffa450edef68
2014-04-07 14:29:32 +00:00
Gary D. Gregory 8e18054f3b Better ivar name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1585096 13f79535-47bb-0310-9956-ffa450edef68
2014-04-05 14:06:43 +00:00
Gary D. Gregory 5daf49a180 Add API org.apache.commons.csv.CSVParser.getRecords(T).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1584936 13f79535-47bb-0310-9956-ffa450edef68
2014-04-04 23:28:17 +00:00
Gary D. Gregory c2ed3be44d Add API org.apache.commons.csv.CSVParser.getRecords(T).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1584903 13f79535-47bb-0310-9956-ffa450edef68
2014-04-04 20:44:46 +00:00
Gary D. Gregory 6b3afdc93d Clean up constant name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1584893 13f79535-47bb-0310-9956-ffa450edef68
2014-04-04 20:30:02 +00:00
Sebastian Bazley 8e9dd9e158 Also check xml files for tabs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582833 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 17:09:20 +00:00
Sebastian Bazley ffdfffb8f2 TRailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582822 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 16:52:17 +00:00
Sebastian Bazley 7bba60a559 Ensure resources are released
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582817 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 16:44:41 +00:00
Sebastian Bazley 9873b13df2 Don't omit default cases
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582814 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 16:38:26 +00:00
Sebastian Bazley 1933f8abaf Avoid resource leak warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582813 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 16:37:54 +00:00
Sebastian Bazley d6294bc598 Ignore test code boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582812 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 16:37:35 +00:00
Sebastian Bazley 3a2cb6b308 Update Findbugs version
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582790 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 16:08:33 +00:00
Gary D. Gregory 0fbefc96be Add some interesting ASCII codes to Constants class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1582481 13f79535-47bb-0310-9956-ffa450edef68
2014-03-27 21:22:59 +00:00
Gary D. Gregory e454d6847e Simplest behavior: null -> exception, like the other params.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578504 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 18:41:52 +00:00
Gary D. Gregory 5d5458d7f6 Simplest behavior: null -> exception, like the other params.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578502 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 18:40:58 +00:00
Gary D. Gregory c8630e103a Clean up tests for [CSV-107] CSVFormat.EXCEL.parse should handle byte order marks.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578397 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 14:32:38 +00:00
Gary D. Gregory 932b294410 Update Checkstyle and PMD.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578206 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 02:11:50 +00:00
Gary D. Gregory fcdf1f2efa Clean up tests.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578199 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 01:08:43 +00:00
Gary D. Gregory 3cb24cbdfb The charset can be null and will default to UTF-8.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578198 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 01:08:00 +00:00