Commit Graph

1412 Commits

Author SHA1 Message Date
Gary Gregory 6ffce5335b Standardize on US spelling of "behavior". 2019-05-28 23:45:25 -04:00
Dave Moten 474b7f4d00 [CSV-239] Add javadoc to CSVFormat (#42) 2019-05-27 18:17:26 -04:00
Gary Gregory dca99998f1 Sort methods. 2019-05-27 08:10:35 -04:00
Gary Gregory 3241e0c7b2 Be quiet on the console. 2019-05-27 08:04:32 -04:00
Gary Gregory 8eb36bd8a7 - Remove unused import.
- Remove trailing white spaces on all lines.
- Use final.
- Use for-each (in test).
- Use try-with-resources (in test).
- Document empty blocks.
2019-05-24 08:21:21 -04:00
Dave Moten 030fb8e37c [CSV-239] Add CSVRecord.getHeaderNames and allow duplicate headers (#41)
* [CSV-239] Cannot get headers in column order from CSVRecord.
* getHeaderNames returns all headers in column order including repeats which are allowed as per RFC 4180
* add CSVFormat.withAllowDuplicateHeaderNames()

* [CSV-239] Cannot get headers in column order from CSVRecord.
* only wrap headerNames with unmodifiableList if non-empty
* fix and enhance CSVRecord.toMap javadoc

* [CSV-239] Cannot get headers in column order from CSVRecord.
* fix exception messages

* [CSV-239] Cannot get headers in column order from CSVRecord.
* fix whitespace

* [CSV-239] Cannot get headers in column order from CSVRecord.
* simplify if statement

* [CSV-239] Cannot get headers in column order from CSVRecord.
* fix indentation
* add javadoc to Headers class
* rename method to createHeaders
* use String.format to build error message
* initialize header names List with appropriate size
2019-05-24 08:11:17 -04:00
Gary Gregory 4d2616b7a5 [CSV-239] Cannot get headers in column order from CSVRecord.
Undo previous change.
2019-05-20 20:08:08 -04:00
Gary Gregory da55604794 [CSV-239] Cannot get headers in column order from CSVRecord.
CSVParser.createHeaderNames(Map<String, Integer>) -> private and
instance side.
2019-05-20 19:53:15 -04:00
Gary Gregory 6fd5179244 [CSV-239] Cannot get headers in column order from CSVRecord.
Rename CSVRecord.getCSVParser() -> getParser().
2019-05-20 19:51:21 -04:00
Gary Gregory d346048552 Fix warning reported by 'mvn versions:display-plugin-updates' 2019-05-20 08:27:36 -04:00
Gary Gregory 5722332c9a Fix warning reported by 'mvn versions:display-plugin-updates' 2019-05-20 08:25:08 -04:00
Gary Gregory 3fa020303b javancss-maven-plugin blows up, drop it. 2019-05-20 08:21:43 -04:00
Gary Gregory 024f98e039 [CSV-239] Cannot get headers in column order from CSVRecord.
Add test.
2019-05-20 08:14:35 -04:00
Gary Gregory 282f211394 [CSV-239] Cannot get headers in column order from CSVRecord.
- Redo header names as an read-only list.
2019-05-20 08:10:49 -04:00
Gary Gregory 476e883081 Remove unused import. 2019-05-19 19:50:41 -04:00
Gary Gregory ef51c1ecad [CSV-239] Cannot get headers in column order from CSVRecord.
- Redo so that the record tracks its source parser where call sites can
find metadata. This avoids adding slots to the record class itself.
2019-05-19 19:49:23 -04:00
Gary Gregory 9dcad06c00 Sort methods. 2019-05-19 18:55:22 -04:00
Gary Gregory 788f2aaa7a [CSV-239] Cannot get headers in column order from CSVRecord. 2019-05-19 10:26:27 -04:00
Gary Gregory d8d5de6476 [CSV-239] Cannot get headers in column order from CSVRecord.
Some NPE-proofing.
2019-05-19 09:32:46 -04:00
Gary Gregory 8a5efdeb7e Better method name. 2019-05-19 09:25:02 -04:00
Gary Gregory 734e7a910f Update maven-pmd-plugin from 3.11.0 to 3.12.0. 2019-04-23 16:02:26 -04:00
Gary Gregory a6ecad93bd Add OpenJDK 12 to Travis builds. 2019-04-16 09:14:09 -04:00
Gary Gregory 01e7e384ac Update tests from Apache Commmons Lang 3.8.1 to 3.9. 2019-04-14 20:26:30 -04:00
Gary Gregory 7c1a3fab64 Update Apache Commons Parent from 47 to 48. 2019-03-25 12:00:31 -04:00
Gary Gregory 766562306c Update Travis build with current JDKs. 2019-03-22 15:20:01 -04:00
Gary Gregory b281a0a986 Update tests from H2 1.4.198 to 1.4.199. 2019-03-13 12:16:13 -04:00
Gary Gregory 4e438b9f81 Update tests from H2 1.4.198 to 1.4.199. 2019-03-13 12:08:41 -04:00
Gary Gregory 8e246742a9 Bump versions. 2019-02-27 10:42:38 -05:00
Gary Gregory ae5ace1f72 Specify Java version in changes.xml. 2019-02-27 10:41:33 -05:00
Gary Gregory 480b90febb [CSV-238] Escape quotes in CLOBs.
Closes #39.
2019-02-27 10:41:04 -05:00
Gary Gregory e24dc316d4 Address compiler warnings. 2019-02-24 10:12:42 -05:00
Gary Gregory bf3f34c8b5 Address compiler warnings. 2019-02-24 10:11:29 -05:00
Gary Gregory 4e02db1272 Use try-with-resources. 2019-02-24 10:10:09 -05:00
Gary Gregory 574ed87b26 Don't throw RuntimeException. 2019-02-24 10:07:39 -05:00
Gary Gregory 5bdafc6ce5 Redundant specification of type arguments. 2019-02-24 10:06:08 -05:00
Gary Gregory 45d05b4a50 [CSV-237] Update to Java 8. 2019-02-24 10:05:21 -05:00
Gary Gregory 1305ef1029 [CSV-237] Update to Java 8. 2019-02-24 10:04:45 -05:00
Gary Gregory f69a78972f Inherit plugin version from commons-parent. 2019-02-23 09:39:33 -05:00
Gary Gregory 293fa4dec3 Update Maven PMD Plugin from 3.8 to 3.11.0. 2019-02-23 09:38:00 -05:00
Gary Gregory 8685aa5ff9 Checkstyle. 2019-02-23 09:34:31 -05:00
Gary Gregory 17be5351cb Update Maven Checktyle Plugin from 2.7 to 3.0.0. 2019-02-23 09:33:17 -05:00
Gary Gregory 887eb97d1e Next release is 1.7. 2019-02-23 09:24:36 -05:00
Gary Gregory 2d919276bf Oops, I did not mean to update to Java 7 yet. 2019-02-23 09:24:01 -05:00
Gary Gregory 4fd494d590 Update tests from H2 1.4.197 to 1.4.198. 2019-02-23 09:21:19 -05:00
Gary Gregory 483ba855f2 Unnecessary semicolon. 2019-02-23 08:20:53 -05:00
Gary Gregory bf2c2f7ad6 Update tests from H2 1.4.196 to 1.4.197. 2019-02-23 08:20:12 -05:00
Benedikt Ritter 7684694173
Add missing Apache license header 2019-02-09 17:04:14 +01:00
Thomas Vandahl 546fd69eaa Fix broken link 2018-12-10 20:24:15 +01:00
Gary Gregory 322fad25ad [CSV-234] Add support for java.sql.Clob. 2018-12-09 14:59:27 -07:00
Gary Gregory 0ab2b0818a [CSV-232] Site link "Source Repository" does not work. Get rid of the
link in favor of the more complete
https://commons.apache.org/proper/commons-csv/scm.html as listed under
the section "PROJECT DOCUMENTATION -> Project Information".
2018-10-22 21:50:53 -06:00