orika-mapper/orika — pull request #35 by jad7 (2014-02-26 00:06:54+00:00)
Title: Fix bug in Converter

In debug mode I have:
source: ((java.lang.Boolean)attribute_source0Element.getVisible())
destenation: ((boolean)((com.macys.platform.services.navigation.dto.AttributeDTO)_destination0Element.getValue()).isVisible())
We can see that destenation primitive and source Boolean (Object)
But in result generated code: (((java.lang.Boolean)attribute_source0Element.getVisible()) != null && ((boolean)((com.macys.platform.services.navigation.dto.AttributeDTO)_destination0Element.getValue()).isVisible()) == ((java.lang.Boolean)attribute_source0Element.getVisible()).java.lang.BooleanValue())
which not complied.

Should be:
(((java.lang.Boolean)attribute_source0Element.getVisible()) != null && ((boolean)((com.macys.platform.services.navigation.dto.AttributeDTO)_destination0Element.getValue()).isVisible()) == ((java.lang.Boolean)attribute_source0Element.getVisible()).booleanValue())