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

small optimization in CSVPrinter#print(String)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.0
    • Printer
    • None

    Description

      The following code in CSVPrinter#print(String) could use a break:

      for (int i = 0; i < value.length(); i++) {
      c = value.charAt;
      if (c == '"' || c == this.strategy.getDelimiter() || c == '\n' || c == '\r')

      { quote = true; >>> BREAK OUT OF LOOP HERE <<< }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            sdanig Daniel Gredler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: