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

Unified parameter validation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.1
    • Parser
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: