garydgregory commented on a change in pull request #62: Fix the old test case
record.getComment() will never be null
URL: https://github.com/apache/commons-csv/pull/62#discussion_r396534957
##########
File path: src/test/java/org/apache/commons/csv/CSVFileParserTest.java
##########
@@ -140,11 +137,8 @@ public void testCSVUrl(final File testFile) throws
Exception {
try (final CSVParser parser = CSVParser.parse(resource,
Charset.forName("UTF-8"), format)) {
for (final CSVRecord record : parser) {
String parsed = Arrays.toString(record.values());
- if (checkComments) {
- final String comment =
record.getComment().replace("\n", "\\n");
- if (comment != null) {
- parsed += "#" + comment;
- }
+ if (checkComments && record.getComment() != null) {
Review comment:
Same as above.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services