ntlcn / xmappr

Automatically exported from code.google.com/p/xmappr
0 stars 0 forks source link

Replaces generics parameter discovery with 'targetType' attribute on Collections #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
@Element(targetType=Item.class)
public List<Item> list;

can be simplified to 

@Element
public List<Item> list;

by using reflection to discover generics type parameters of fields.

Original issue reported on code.google.com by peter.kn...@gmail.com on 5 Jan 2010 at 10:48

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r243.

Original comment by peter.kn...@gmail.com on 5 Jan 2010 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by peter.kn...@gmail.com on 5 Jan 2010 at 11:37