Commit Graph

540 Commits

Author SHA1 Message Date
Gary D. Gregory 42a4812bce Fix Checkstyle: File does not end with a newline.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383578 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:41:25 +00:00
Gary D. Gregory bf06bed9b8 Remove trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383577 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:40:37 +00:00
Gary D. Gregory 0638a37368 Match ASF headers to checkstyle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383573 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:36:54 +00:00
Gary D. Gregory 6a132b40ab Match ASF headers to checkstyle.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383572 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:35:45 +00:00
Gary D. Gregory 97d59f8704 Replace empty throws that "should not happen" with an IllegalStateException.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383569 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:30:21 +00:00
Gary D. Gregory cc4cc4747e Remove extra blank line.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383567 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:25:12 +00:00
Gary D. Gregory e235b2a63c Refactor '\r' and '\n' into constants.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383564 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:17:25 +00:00
Gary D. Gregory 29944bcec1 Fix incorrect Javadoc method reference.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383558 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:08:56 +00:00
Gary D. Gregory 3eff704245 Remove unneeded @SuppressWarnings("unused")
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383557 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:03:45 +00:00
Gary D. Gregory 87466459c0 Add default serialVersionUID to two classes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383556 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 19:03:03 +00:00
Gary D. Gregory 71ded2eff0 Better version and date.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383555 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:58:30 +00:00
Gary D. Gregory 4cec1b66f2 Add missing ASF header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383554 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:55:58 +00:00
Gary D. Gregory 763c7e0d11 Add missing ASF header and XML PI.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383553 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:55:18 +00:00
Gary D. Gregory 1018dafd5d Add missing ASF header.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383545 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:54:17 +00:00
Gary D. Gregory 4173bc1079 Add more reports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383535 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:51:54 +00:00
Gary D. Gregory 2806ec85d0 Define groupId org.apache.commons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383514 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:30:53 +00:00
Gary D. Gregory 50d48c98f2 Use commons-parent 26.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383513 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:29:53 +00:00
Gary D. Gregory b372050f7f Fix compilation issue.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383504 13f79535-47bb-0310-9956-ffa450edef68
2012-09-11 18:18:14 +00:00
Olivier Lamy 539c976728 ignore idea files
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1348843 13f79535-47bb-0310-9956-ffa450edef68
2012-06-11 13:37:42 +00:00
Sebastian Bazley 720b341bf0 CSV-90 CSVFormat isEscaping/isEncapsulating are not public
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1327754 13f79535-47bb-0310-9956-ffa450edef68
2012-04-19 00:23:51 +00:00
Sebastian Bazley adf5f834db Covert to new style package Javadoc; tidy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307210 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 01:51:28 +00:00
Sebastian Bazley 795fe61858 Use public CRLF constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307205 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 01:33:02 +00:00
Sebastian Bazley d89a0f482f Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307201 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 01:16:45 +00:00
Sebastian Bazley 5c3e51363f Use public CRLF constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307188 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 01:00:32 +00:00
Sebastian Bazley 0186a3d335 CRLF might as well be public to make it easier to use to build formats.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307187 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 00:58:36 +00:00
Sebastian Bazley d994897420 Reduce dependency on DISABLED package constant
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307186 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 00:57:29 +00:00
Sebastian Bazley 7d2ec7a053 CSV-85 Allow comments to be returned in CSVRecord
Added test for comment before header

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307078 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 19:50:26 +00:00
Sebastian Bazley 29c80daa3c Add test for CSV-57
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307068 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 19:26:28 +00:00
Sebastian Bazley 5a925ff1ff Another baseline
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307043 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 18:49:20 +00:00
Sebastian Bazley 3296f59696 Javadoc tweak
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307042 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 18:48:47 +00:00
Sebastian Bazley aae00f39ad CSV-85 Allow comments to be returned in CSVRecord
More test cases

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306948 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 16:03:32 +00:00
Sebastian Bazley 787ab08db9 CSV-85 Allow comments to be returned in CSVRecord
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306947 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 16:03:03 +00:00
Sebastian Bazley e94085595f CSV-35 add test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306896 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 15:10:56 +00:00
Sebastian Bazley a07c9f72fc Improve escape tests
Fix bug in readEscape() - was not handling EOF

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306890 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 15:01:04 +00:00
Sebastian Bazley 5c9697c158 More debug
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306889 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 14:57:55 +00:00
Sebastian Bazley cee5cc3d74 CSV-69 Eliminate CSVPrinterTest.equals(String[][], String[][]) by using Assert.assertArrayEquals
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306833 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 13:09:43 +00:00
Sebastian Bazley 9d00beb352 CSV-69 Utility methods for comparing results
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306828 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 13:02:27 +00:00
Sebastian Bazley 8462234502 We don't care if trailing LF has been consumed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306797 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 12:03:53 +00:00
Sebastian Bazley a5b76b6c20 Fix revision
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306789 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 11:35:20 +00:00
Sebastian Bazley 517bf0d583 Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306784 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 10:57:55 +00:00
Sebastian Bazley fe10274918 Test comments and blank lines
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306668 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 01:25:47 +00:00
Sebastian Bazley 3fd45b5441 Have to check for comment after dealing with empty lines.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306667 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 01:24:24 +00:00
Sebastian Bazley 9ce0716a43 Save current lexer for comparisons
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306664 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 01:10:25 +00:00
Sebastian Bazley 19ba389fe8 Checking the token type seems to be quite slow
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306663 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:58:36 +00:00
Sebastian Bazley 810c8d0ae5 Initial tests for CSV-85 - to be updated when issue is implemented
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306662 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:46:54 +00:00
Sebastian Bazley 9dd5ace960 More blank line tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306661 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:45:39 +00:00
Sebastian Bazley 49c9a67b26 Add back trailing comment test (this time with correct expected results)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306660 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:43:34 +00:00
Sebastian Bazley a4dd5eb503 Add a few more blank lines to the test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306659 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:31:16 +00:00
Sebastian Bazley 03dbcf48c0 Test with empty lines
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306651 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:05:45 +00:00
Sebastian Bazley 02a36dd41d Test multiple adjacent comments
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306650 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 00:03:19 +00:00