dota17 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_r396867943
##########
File path: src/test/java/org/apache/commons/csv/CSVFileParserTest.java
##########
@@ -93,11 +93,8 @@ public void testCSVFile(final File testFile) throws
Exception {
try (final CSVParser parser = CSVParser.parse(new File(BASE,
split[0]), Charset.defaultCharset(), 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) {
Review comment:
thanks for review , I have fix that
----------------------------------------------------------------
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