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

Unified parameter validation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1
    • Component/s: Parser
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              wuwen wu wen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: