I really don't like casting type to Object and then later checking for type and casting it back. Type checking and casting are very slow if nothing else.
Can't you for example add type parameter to the private constructor to avoid cast to object and later use this type parameter to know of what type the parameter is? Or even have multiple property fields each with different type and later you set the only one that is not null to avoid casting altogether.

Change By: Jan Haderka (27/Jul/13 6:32 AM)
Resolution: Fixed
Status: Resolved Reopened
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to