Commit Graph

1671 Commits

Author SHA1 Message Date
Gary Gregory ca5eb7cdbe Bump biz.aQute.bnd:biz.aQute.bndlib from 5.1.2 to 5.3.0. 2021-07-08 17:19:29 -04:00
Gary Gregory 171721ed35 Bump maven-javadoc-plugin from 3.2.0 to 3.3.0. 2021-07-08 17:16:26 -04:00
Gary Gregory f26a22a9a6 Test parsing an empty file.
- Sort members.
- Better constant name.
- Move RAT check to plugin management section to de-duplicate the
exclusion list.
2021-07-08 17:12:52 -04:00
Gary Gregory d608f55f0d File end in an EOL. 2021-07-08 15:29:46 -04:00
Gary Gregory ac280e705d [CSV-93] Allow the handling of NULL values.
- [CSV-253] Handle absent values in input (null).
- Cleaned up version of PR 77 from dota17 where:
- Don't duplicate two state items from the format.
- Use try-with-resources.
- Remove useless parens.
- Update Javaodc.
- Sort members in the new tests.
- Use builder.
2021-07-08 12:36:23 -04:00
Gary Gregory 4083b7a2a0 Use final. 2021-07-08 12:11:04 -04:00
Gary Gregory 6bfd380cb1 Use final. 2021-07-08 11:49:48 -04:00
Gary Gregory de4508c6c9 Replace JUnit assert by simpler but equivalent calls. #159. 2021-07-07 19:20:48 -04:00
Arturo Bernal c34e969d1e
Replace assert by simpler but equivalent calls. (#159) 2021-07-07 19:19:52 -04:00
Gary Gregory a4237345a1 [CSV-263] Print from Reader with embedded quotes generates incorrect
output.

- Resolve conflicts from PR #78 by Jason A. Guild.
- Don't use depreacted methods.
- Javadoc.
- Use final.
2021-07-07 19:18:12 -04:00
Gary Gregory 3dad2eef41 Refactor append calls into private methods for ongoing streaming work. 2021-07-07 18:59:07 -04:00
Gary Gregory 688e79c397 Bump junit-jupiter from 5.7.2 to 5.8.0-M1. 2021-07-07 18:50:29 -04:00
Gary Gregory 93a9affacf [CSV-158] Fix EOL checking for read array in ExtendedBufferedReader.
Clean up new test methods. Sort methods.
2021-07-07 08:43:55 -04:00
Alexander Bondarev a6ca4165a8
[CSV-158] Fix EOL checking for read array in ExtendedBufferedReader (#5)
* Fix eol checking for read array in ExtendedBufferedReader

* Add test for eol checking when reading to different buffers

Co-authored-by: mirasrael <d_signer@mail.ru>
Co-authored-by: Alexander Bondarev <alexander.bondarev@thomsonreuters.com>
2021-07-07 08:35:17 -04:00
Gary Gregory abfdf83f11 Add tests that print CSVRecords. 2021-07-06 13:11:43 -04:00
Gary Gregory d59f0866ce Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-csv.git 2021-07-06 09:37:04 -04:00
Gary Gregory 6d19cee13a Bump opencsv from 5.4 to 5.5 #158. 2021-07-06 09:36:57 -04:00
dependabot[bot] 472bafa9b6
Bump opencsv from 5.4 to 5.5 (#158)
Bumps opencsv from 5.4 to 5.5.

---
updated-dependencies:
- dependency-name: com.opencsv:opencsv
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-06 09:36:07 -04:00
Gary Gregory 589f822445 Use streams.
Remove unused imports.
2021-07-06 09:35:44 -04:00
Gary Gregory 9de125e4f1 Javadoc: Close HTML tags. 2021-07-05 16:39:58 -04:00
Gary Gregory c6c7676b56 Add PMD check to default goal and fix only 2 remaining PMD warnings. 2021-07-05 16:38:52 -04:00
Gary Gregory d8d080453e Add support for String delimiters #76.
Bump PMD core from 6.29.0 to 6.36.0. Fix rule set.
2021-07-05 12:06:07 -04:00
Gary Gregory b4b9a6bc0e Sort members. 2021-07-05 09:12:49 -04:00
Gary Gregory da4d2e5c2d Add and use CSVFormat.Builder, deprecated CSVFormat#with methods, based
on #73.

Better test method names and use @SuppressWarnings("deprecation").
2021-07-05 08:59:59 -04:00
Gary Gregory 37872b84d6 Missing separator with print(object) followed by printRecord(Object[])
#157.
2021-07-04 17:37:56 -04:00
Amar Prakash Pandey 2c83a30825
Fixed CSV-271 & Add testcase for new change (#157) 2021-07-04 17:35:02 -04:00
Gary Gregory 6a2376a906 Add and use CSVFormat.Builder, deprecated CSVFormat#with methods, based
on #73.
2021-07-04 13:19:43 -04:00
Gary Gregory dc5d034a47 Use try-with-resources. 2021-07-03 16:50:13 -04:00
Gary Gregory 5d16917835 Use try-with-resources. Better local var name. 2021-07-03 16:40:37 -04:00
Gary Gregory 858031d1a3 Clean up exception. 2021-07-03 16:38:57 -04:00
Gary Gregory bc5698b95d Organize imports. 2021-07-03 15:02:47 -04:00
Gary Gregory 6b718c32fe Update CSVParser.parse(File, Charset, CSVFormat) from IO to NIO. 2021-07-03 15:02:20 -04:00
Gary Gregory 8568e8865a Update CSVParser.parse(File, Charset, CSVFormat) from IO to NIO. 2021-07-03 15:01:54 -04:00
Gary Gregory 83ad213fdb [CSV-148] Add testcases about withIgnoreSurroundingSpaces() and
withTrim() #70.
2021-07-03 14:45:21 -04:00
Chen 238486dd77
[CSV-148] Add testcases about withIgnoreSurroundingSpaces() and withTrim() (#70) 2021-07-03 14:42:23 -04:00
Gary Gregory b271b21567 Minor Improvements #130. 2021-07-03 14:40:41 -04:00
Arturo Bernal 3f6357e8f4
Minor Improvement: (#130)
* System.arraycopy
* Remove redundant initializer
* Use empty array
2021-07-03 14:39:49 -04:00
Gary Gregory af84037189
Update JApiCmp from 0.14.3 to 0.15.3. 2021-07-03 11:46:21 -04:00
Gary Gregory 7b854306eb Bump opencsv from 5.2 to 5.4 #137. 2021-07-03 10:33:45 -04:00
dependabot[bot] 0839193828
Bump opencsv from 5.2 to 5.4 (#137)
Bumps opencsv from 5.2 to 5.4.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-03 10:33:08 -04:00
Gary Gregory bb6ad02cdc Bump jmh-generator-annprocess from 1.5.2 to 1.32 #151. 2021-07-03 10:32:54 -04:00
dependabot[bot] 4b73ea42c7
Bump jmh-generator-annprocess from 1.5.2 to 1.32 (#151)
Bumps jmh-generator-annprocess from 1.5.2 to 1.32.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-03 10:32:11 -04:00
Gary Gregory 02efd1604f # WARNING: head commit changed in the meantime
Add CSVParser#stream().

- Use JApiCmp instead of Clirr in the default goal.
- Allow for longer lines.
- Fix PMD custom rules for current version of PMD.
- Bump checkstyle from 8.29 to 8.44.
- Bump commons.javadoc.version from 3.2.0 to 3.3.0.
2021-07-03 10:31:46 -04:00
Gary Gregory ee9b09e750 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-csv.git 2021-07-03 09:30:29 -04:00
dependabot[bot] a3e75138b7
Bump jmh-core from 1.5.2 to 1.32 (#152)
Bumps jmh-core from 1.5.2 to 1.32.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-03 09:30:12 -04:00
Gary Gregory 3c16933fca Sort members. 2021-07-03 09:24:38 -04:00
Gary Gregory d1601d3fec Organize imports, simpler arrays, simpler if/else. 2021-07-03 09:13:51 -04:00
Gary Gregory a0fcf9a5a5 Use Stream.of() and rename new method to be like Collection#stream()
instead of toStream().
2021-07-03 09:11:25 -04:00
Gary Gregory 805d329bda Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-csv.git 2021-07-03 09:04:49 -04:00
Gary Gregory 594de09e2d Bump mockito-core from 3.7.7 to 3.11.2 #156. 2021-07-03 09:04:42 -04:00