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 15:49:33 UTC
[jira] [Created] (CSV-134) Unified parameter validation
wu wen created CSV-134:
--------------------------
Summary: 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)