PeterKnego/xmappr

Simplify ElementMapper

Closed this issue · 4 comments

ElementMapper handles both Collection and simple fields as targets. Code
contains a lot of branching (if() clauses) to facilitate this. To unify the
code, remove targetType and elementConverter fields and all code that
depends on them. Replace them with itemTypes and converterCache collections
which already exist for Collections handling. Also check
AnnotationProcessor.processElements() method that sets this two fields and
replace accordingly.

Original issue reported on code.google.com by peter.kn...@gmail.com on 28 Nov 2009 at 7:36

Original comment by peter.kn...@gmail.com on 30 Nov 2009 at 12:04

  • Added labels: Milestone-0.9.1

Original comment by peter.kn...@gmail.com on 8 Jan 2010 at 9:04

  • Added labels: Milestone-Release1.0

Original comment by peter.kn...@gmail.com on 8 Jan 2010 at 9:05

  • Added labels: Milestone-1.0.0
This issue was closed by revision r259.

Original comment by peter.kn...@gmail.com on 21 Jan 2010 at 10:50

  • Changed state: Fixed