[CSV-304] Accessors for header/trailer comments#257
Conversation
Add accessors for header comments (before the header row) and trailer comments (after the last record) Also add javadoc and tests
As requested in code review
Codecov Report
@@ Coverage Diff @@
## master #257 +/- ##
============================================
- Coverage 96.99% 96.93% -0.07%
- Complexity 529 536 +7
============================================
Files 11 11
Lines 1166 1175 +9
Branches 204 206 +2
============================================
+ Hits 1131 1139 +8
Misses 23 23
- Partials 12 13 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Also reworded some documentation text to read better
|
I noticed that github is parsing the Javadoc annotation |
kinow
left a comment
There was a problem hiding this comment.
Looks good to me. Asked a review from @garydgregory as he works on and knows a lot more about this component. Thanks @pedro-w !
garydgregory
left a comment
There was a problem hiding this comment.
Hi @pedro-w,
Is the intent to allow comments at the start and end of a file or before and after each record?
Please see my scattered comments as well.
The former. I'll explain my thinking, please correct me if I've got it wrong! The comments attach to the following line so Comments 1 & 2 can currently be extracted from the corresponding My intention was to allow access to Comment 0 via I'll get onto the other issues too as they're mostly just formatting. |
Also, formatting and whitespace changes as requested in code review.
Add accessors for header comments (before the header row)
and trailer comments (after the last record)
Also add javadoc and tests
See https://issues.apache.org/jira/browse/CSV-304