Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1075

splitEachLine() wraps the result of the split in a (useless) single element list

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-JSR-4
    • None
    • None
    • All

    Description

      splitEachLine() wraps the result of the split in a (useless) single element list. Instead it should work like this:

      void testSplitEachLine() {
      String s = """A B C D
      E F G H
      """
      Reader reader = new StringReader(s)
      reader.splitEachLine(" ")

      { list -> println list }

      }

      Attachments

        Activity

          People

            meling Hein Meling
            meling Hein Meling
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: