You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by rg...@apache.org on 2006/09/29 01:53:57 UTC
svn commit: r451064 -
/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Cache/CacheKey.cs
Author: rgrabowski
Date: Thu Sep 28 16:53:56 2006
New Revision: 451064
URL: http://svn.apache.org/viewvc?view=rev&rev=451064
Log:
Replaced obj.GetHashCode() call in CacheKey.Update with HashCodeProvider.GetIdentityHashCode(obj).
Modified:
ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Cache/CacheKey.cs
Modified: ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Cache/CacheKey.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Cache/CacheKey.cs?view=diff&rev=451064&r1=451063&r2=451064
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Cache/CacheKey.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/Cache/CacheKey.cs Thu Sep 28 16:53:56 2006
@@ -2,7 +2,7 @@
#region Apache Notice
/*****************************************************************************
* $Header: $
- * $Revision: $
+ * $Revision$
* $Date$
*
* iBATIS.NET Data Mapper
@@ -29,6 +29,8 @@
namespace IBatisNet.DataMapper.Configuration.Cache
{
+ using IBatisNet.Common.Utilities;
+
/// <summary>
/// Hash value generator for cache keys
/// </summary>
@@ -83,7 +85,7 @@
/// <returns>the cachekey</returns>
public CacheKey Update(object obj)
{
- int baseHashCode = obj.GetHashCode();
+ int baseHashCode = HashCodeProvider.GetIdentityHashCode(obj);
_count++;
_checksum += baseHashCode;