You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "wu wen (JIRA)" <ji...@apache.org> on 2014/09/17 16:11:34 UTC
[jira] [Commented] (CSV-134) Unified parameter validation
[ https://issues.apache.org/jira/browse/CSV-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14137291#comment-14137291 ]
wu wen commented on CSV-134:
----------------------------
https://github.com/apache/commons-csv/pull/4
> 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
> Priority: Trivial
>
> 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)