commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CSV-156) Incorrect Javadoc on QuoteMode.NONE
Date Mon, 10 Aug 2015 07:06:45 GMT

     [ https://issues.apache.org/jira/browse/CSV-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Gregory resolved CSV-156.
------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.1

Fixed in SVN trunk. Please verify and close.

> Incorrect Javadoc on QuoteMode.NONE
> -----------------------------------
>
>                 Key: CSV-156
>                 URL: https://issues.apache.org/jira/browse/CSV-156
>             Project: Commons CSV
>          Issue Type: Bug
>          Components: Documentation, Printer
>    Affects Versions: 1.1
>            Reporter: Jason Steenstra-Pickens
>            Priority: Trivial
>             Fix For: 1.1.1
>
>
> The JavaDoc for {{QuoteMode.NONE}} says:
> {quote}
> 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.
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message