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

Groovy should default to LinkedHashSet when using 'as Set' to make default sets deterministic

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.8.5, 2.0-beta-2
    • None
    • None

    Description

      When creating sets using e.g. [] as Set Groovy should default to a LinkedHashSet. Users can still do 'as HashSet' to obtain the slightly more efficient but less deterministic HashSet.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: