krasa / krasa-jaxb-tools

XJC / JAXB plugin for generation of Bean Validation Annotations (JSR-303) and replacing primitive types
Apache License 2.0
60 stars 49 forks source link

XReplacePrimitives not converting doubles and floats #46

Closed bgedik closed 8 years ago

bgedik commented 8 years ago

I am observing the following behavior:

Without XReplacePrimitives (the default Jaxb behavior): An optional int becomes Integer, a mandatory one becomes int An optional double becomes Double, a mandatory one becomes double

With XReplacePrimitives: An optional int becomes Integer, a mandatory one becomes Integer as well An optional double becomes Double, a mandatory one becomes double, as opposed to Double that one would expect

Is this expected?