Enumeration parameters in DaoBase methods are treated as objects instead of 
primitives
--------------------------------------------------------------------------------------

         Key: NETCART-7
         URL: http://jira.andromda.org/browse/NETCART-7
     Project: .NET Cartridges
        Type: Bug

    Reporter: Naresh Bhatia
 Assigned to: Naresh Bhatia 
    Priority: Minor


The if (orderStatus == null) check generates a compiler warning: The result of 
the expression is always 'false' since a value of type 'Oms.Domain.OrderStatus' 
is never equal to 'null' of type 'Oms.Domain.OrderStatus?'

        public System.Collections.IList 
FindOrdersByStatus(Oms.Domain.OrderStatus orderStatus)
        {
            if (orderStatus == null)
            {
                throw new ArgumentNullException(
                    
"Oms.Domain.IOrderDao.FindOrdersByStatus(Oms.Domain.OrderStatus orderStatus) - 
'orderStatus' can not be null");
            }
            return this.HandleFindOrdersByStatus(orderStatus);
        }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Reply via email to