From: Michael D. <mik...@us...> - 2004-11-22 03:52:58
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28506/Util Modified Files: ObjectUtils.cs ReflectHelper.cs StringHelper.cs Log Message: modified Factory/Helper classes to be sealed since they are not extendable or creatable. Index: ObjectUtils.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Util/ObjectUtils.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ObjectUtils.cs 7 Mar 2003 15:07:01 -0000 1.2 --- ObjectUtils.cs 22 Nov 2004 03:52:18 -0000 1.3 *************** *** 56,66 **** using System; ! namespace NHibernate.Util { /// <summary> /// Summary description for ObjectUtils. /// </summary> ! public class ObjectUtils { ! private ObjectUtils() {} public static object DefaultIfNull(object obj, object defaultVal) { --- 56,71 ---- using System; ! namespace NHibernate.Util ! { /// <summary> /// Summary description for ObjectUtils. /// </summary> ! public sealed class ObjectUtils ! { ! private ObjectUtils() ! { ! // not creatable ! } public static object DefaultIfNull(object obj, object defaultVal) { Index: ReflectHelper.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Util/ReflectHelper.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ReflectHelper.cs 23 Oct 2004 15:01:23 -0000 1.17 --- ReflectHelper.cs 22 Nov 2004 03:52:18 -0000 1.18 *************** *** 13,16 **** --- 13,21 ---- public sealed class ReflectHelper { + private ReflectHelper() + { + // not creatable + } + private static System.Type[] NoClasses = new System.Type[0]; private static System.Type[] Object = new System.Type[] { typeof(object) }; Index: StringHelper.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Util/StringHelper.cs,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** StringHelper.cs 19 Aug 2004 17:53:55 -0000 1.15 --- StringHelper.cs 22 Nov 2004 03:52:18 -0000 1.16 *************** *** 3,10 **** using System.Collections; ! namespace NHibernate.Util { ! public sealed class StringHelper { ! public const char Dot = '.'; public const char Underscore = '_'; --- 3,16 ---- using System.Collections; ! namespace NHibernate.Util ! { ! public sealed class StringHelper ! { ! private StringHelper() ! { ! // not creatable ! } ! public const char Dot = '.'; public const char Underscore = '_'; |