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

Documentation for Collection Jdk Methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.1
    • groovy-jdk
    • None

    Description

      Added groovy assertions to Javadocs for Collection methods, e.g.:

          /**
           * Sums the items in a collection.  This is equivalent to invoking the
           * "plus" method on all items in the collection.
           * <pre class="groovyTestCase">assert 1+2+3+4 == [1,2,3,4].sum()</pre>
           *
           * @param self Collection of values to add together
           * @return The sum of all of the items
           * @since 1.0
           */
      

      The patch includes a TestSuite that will execute the code inside the pre tag to ensure that the assertions hold.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: