Skip to content

Commit c1ee0a7

Browse files
authored
Copilot doesn't know about our Checkstyle rules
Updated comment for clarity on handling null strings in CSV formats.
1 parent 4929cb2 commit c1ee0a7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,8 @@ void testEndOfFileBehaviorExcel() throws Exception {
587587
@ParameterizedTest
588588
@EnumSource(value = CSVFormat.Predefined.class, names = { "MySQL", "PostgreSQLCsv", "PostgreSQLText", "Oracle" })
589589
void testEscapedNullStringIsAValue(final CSVFormat.Predefined predefined) throws Exception {
590-
// For formats whose null string is "\\N" (e.g., MySQL, PostgreSQL Text, Oracle), a literal value "\\N" must be written as "\\\\N" so it is not read back as null.
590+
// For formats whose null string is "\\N" (e.g., MySQL, PostgreSQL Text, Oracle),
591+
// a literal value "\\N" must be written as "\\\\N" so it is not read back as null.
591592
final CSVFormat format = predefined.getFormat();
592593
final StringWriter writer = new StringWriter();
593594
try (CSVPrinter printer = new CSVPrinter(writer, format)) {

0 commit comments

Comments
 (0)