Skip to content

Use Diamond operator in generated code #1018

Description

@filiphr

In stead of:

List<Integer> list = new ArrayList<Integer>;

We can generate:

List<Integer> list = new ArrayList<>;

if we are on Java 7 or higher. I think for this we need to pass whether we are creating a new instance to the ModelIncludeDirective which we can then somehow use it in the Type.ftl, or this can already be done with the ext property?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions