Re: [CSV] Odd behavior when using 'QuoteMode.MINIMAL' with empty columns

2023-09-05 Thread Buddhi De Silva
@garydgregory Thank you for the explanation. I have closed the PR since it is no longer needed. On Mon, 4 Sept 2023 at 20:43, Gary Gregory wrote: > Buddhi, > > This example does not make sense because an empty header is illegal. > You won't be able to parse the output generated by this code with

Re: [CSV] Odd behavior when using 'QuoteMode.MINIMAL' with empty columns

2023-09-04 Thread Gary Gregory
Buddhi, This example does not make sense because an empty header is illegal. You won't be able to parse the output generated by this code with the same CSVFormat. Assuming we are not setting headers to an empty array with: CSVFormat.DEFAULT.builder().setQuoteMode(QuoteMode.MINIMAL).build(); The

[CSV] Odd behavior when using 'QuoteMode.MINIMAL' with empty columns

2023-09-04 Thread Buddhi De Silva
Hello Commons-Dev team, I was trying samples with the 'setQuoteMode()' method in the 'CSVFormat' class. When I have a sting list as follows to be formatted, @Test public void test_empty_columns() throws IOException { CSVFormat csvFormat = CSVFormat.DEFAULT.builder() .setHeader()