Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Attributes
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7133
Modified Files:
RequiredAttributeObjectPostProcessor.cs
Log Message:
clean up impl - remove local vars.
Index: RequiredAttributeObjectPostProcessor.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Attributes/RequiredAttributeObjectPostProcessor.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RequiredAttributeObjectPostProcessor.cs 2 Apr 2008 18:02:24 -0000 1.1
--- RequiredAttributeObjectPostProcessor.cs 8 Apr 2008 19:29:07 -0000 1.2
***************
*** 149,156 ****
protected virtual bool IsRequiredProperty(PropertyInfo pi)
{
! MethodInfo setter = pi.GetSetMethod();
! object[] ob = pi.GetCustomAttributes(RequiredAttributeType, true);
! return (setter != null && pi.GetCustomAttributes(RequiredAttributeType, true).Length > 0);
! //return (pi.GetSetMethod() != null && pi.GetCustomAttributes(RequiredAttributeType, true).Length > 0);
}
--- 149,153 ----
protected virtual bool IsRequiredProperty(PropertyInfo pi)
{
! return (pi.GetSetMethod() != null && pi.GetCustomAttributes(RequiredAttributeType, true).Length > 0);
}
|