Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-156

Incorrect Javadoc on QuoteMode.NONE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: Documentation, Printer
    • Labels:
      None

      Description

      The JavaDoc for QuoteMode.NONE says:

      Never quotes fields. When the delimiter occurs in data, it is preceded by the current escape character. If the escape character is not set, printing will throw an exception if any characters that require escaping are encountered.

      However, the CSVFormat.validate() method will throw an IllegalArgumentException if there is no escape character.

      I was expecting the documented behaviour. I guess I will need to use QuoteMode.MINIMAL instead.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Steiny69 Jason Steenstra-Pickens
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: