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

Andi Huber closed ISIS-2100.
----------------------------
    Resolution: Fixed

Implemented. Also added a chapter to the migration notes.

> Reduce call-site complexity of 'BuilderScripts'
> -----------------------------------------------
>
>                 Key: ISIS-2100
>                 URL: https://issues.apache.org/jira/browse/ISIS-2100
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Andi Huber
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-M3
>
>
> Removing type-params, where redundant ...
> {code:java}
> @Accessors(chain = true)
> public class SimpleObjectBuilder 
> extends BuilderScriptAbstract<SimpleObject> { // <= only 1 type param
>     @Getter
>     private SimpleObject object;
>       ...
> }
> @AllArgsConstructor
> public enum SimpleObject_persona 
> implements PersonaWithBuilderScript<SimpleObjectBuilder> /* <= only 1 type 
> param */ ... {
>     FOO("Foo"),
>     BAR("Bar"),
>       
>       ...
>     public SimpleObjectBuilder builder() {
>         return new SimpleObjectBuilder().setName(name);
>     }
>     public static class PersistAll
>     extends PersonaEnumPersistAll<SimpleObject_persona, SimpleObject> /* <= 
> only 2 type params */ {
>               ...
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to