You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (JIRA)" <ji...@apache.org> on 2019/02/22 14:54:00 UTC

[jira] [Created] (ISIS-2100) Reduce call-site complexity of 'BuilderScripts'

Andi Huber created ISIS-2100:
--------------------------------

             Summary: Reduce call-site complexity of 'BuilderScripts'
                 Key: ISIS-2100
                 URL: https://issues.apache.org/jira/browse/ISIS-2100
             Project: Isis
          Issue Type: Bug
          Components: Core
            Reporter: Andi Huber
            Assignee: Andi Huber
             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)