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

Builder's DefaultStrategy has small doc error

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.4.10
    • Documentation
    • None

    Description

      The doc comment for DefaultStrategy reads:
      def person = Person.builder().firstName("Robert").lastName("Lewandowski").age(21).

      This is missing .build() at the end. I tried without the .build() in case there was some runtime type coercion but I got a GroovyCastException, so I believe the docs are in error.

      Attachments

        Activity

          People

            paulk Paul King
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: