You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2014/11/12 04:50:33 UTC
[jira] [Resolved] (CSV-134) Unified parameter validation
[ https://issues.apache.org/jira/browse/CSV-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory resolved CSV-134.
------------------------------
Resolution: Fixed
Fix Version/s: 1.1
Now in SVN. Thank you!
> Unified parameter validation
> ----------------------------
>
> Key: CSV-134
> URL: https://issues.apache.org/jira/browse/CSV-134
> Project: Commons CSV
> Issue Type: Improvement
> Components: Parser
> Reporter: wu wen
> Assignee: Gary Gregory
> Priority: Trivial
> Fix For: 1.1
>
>
> delimiter validate, "isLineBreak(delimiter) "
> and
> header validate
> final Set<String> dupCheck = new HashSet<String>();
> for (final String hdr : header) {
> if (!dupCheck.add(hdr)) {
> throw new IllegalArgumentException("The header contains a duplicate entry: '" + hdr + "' in " +
> Arrays.toString(header));
> }
> }
> move to validate Method
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)