Skip to content

request for automatic detection of parameterized List's #27

@The-Alchemist

Description

@The-Alchemist

If we have:

public class Machines {
    public List<Machine> machines;
}

public class Machine {
    public String machine_used;
    public List<Measurement> measurements;
}

I have to say:

        yamlConfig.setPropertyElementType(Machines.class, "machines", Machine.class);
        yamlConfig.setPropertyElementType(Machine.class, "measurements", Measurement.class);

Couldn't yamlbeans conceivably use the generic parameter of the List as a safe default?

I can submit a pull request, if it has a decent chance of getting accepted. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions