EsotericSoftware / EsotericSoftware/yamlbeans

request for automatic detection of parameterized List's

Open
#27 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
568
Forks
146
PR merge metrics
No merged PRs in 30d

Description

If we have:

```
public class Machines {
public List machines;
}

public class Machine {
public String machine_used;
public List 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. :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.