EsotericSoftware / EsotericSoftware/yamlbeans
request for automatic detection of parameterized List's
Open
- 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.