[jira] [Updated] (GROOVY-8118) Builder's DefaultStrategy has small doc error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Updated] (GROOVY-8118) Builder's DefaultStrategy has small doc error

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/GROOVY-8118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King updated GROOVY-8118:
------------------------------
    Fix Version/s:     (was: 2.4.11)
                   2.4.10

> Builder's DefaultStrategy has small doc error
> ---------------------------------------------
>
>                 Key: GROOVY-8118
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8118
>             Project: Groovy
>          Issue Type: Bug
>          Components: Documentation
>            Reporter: Eric Milles
>            Assignee: Paul King
>            Priority: Trivial
>             Fix For: 2.4.10
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Loading...