CloneSet466


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23210.993class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12360
src/NHibernate/Cache/NonstrictReadWriteCache.cs
22348
src/NHibernate/Cache/ReadOnlyCache.cs
Clone Instance
1
Line Count
23
Source Line
60
Source File
src/NHibernate/Cache/NonstrictReadWriteCache.cs

                /// <summary>
                /// Add an item to the cache
                /// </summary>
                public bool Put(CacheKey key, object value, long txTimestamp, object version, IComparer versionComparator,
                                bool minimalPut)
                {
                        if (txTimestamp == long.MinValue)
                        {
                                // MinValue means cache is disabled
                                return false;
                        }

                        if (minimalPut && cache.Get(key) != null)
                        {
                                if (log.IsDebugEnabled)
                                {
                                        log.Debug("item already cached: " + key);
                                }
                                return false;
                        }
                        if (log.IsDebugEnabled)
                        {
                                log.Debug("Caching: " + key);
                        }
                        cache.Put(key, value);
                        return true;
                }



Clone Instance
2
Line Count
23
Source Line
48
Source File
src/NHibernate/Cache/ReadOnlyCache.cs

                public bool Put(CacheKey key, object value, long timestamp, object version, IComparer versionComparator,
                                                bool minimalPut)
                {
                        if (timestamp == long.MinValue)
                        {
                                // MinValue means cache is disabled
                                return false;
                        }

                        if (minimalPut && cache.Get(key) != null)
                        {
                                if (log.IsDebugEnabled)
                                {
                                        log.Debug("item already cached: " + key);
                                }
                                return false;
                        }
                        if (log.IsDebugEnabled)
                        {
                                log.Debug("Caching: " + key);
                        }
                        cache.Put(key, value);
                        return true;
                }



Clone AbstractionParameter Count: 1Parameter Bindings

/// <summary>
/// Add an item to the cache
/// </summary>
public bool Put(CacheKey key, object value, long [[#variable6c9c1060]], object version, IComparer versionComparator, bool minimalPut)
{
   if ( [[#variable6c9c1060]]== long.MinValue)
   {
      // MinValue means cache is disabled
      return false;
   }
   if (minimalPut && cache.Get(key) != null)
   {
      if (log.IsDebugEnabled)
      {
         log.Debug("item already cached: " + key);
      }
      return false;
   }
   if (log.IsDebugEnabled)
   {
      log.Debug("Caching: " + key);
   }
   cache.Put(key, value);
   return true;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6c9c1060]]
txTimestamp 
12[[#6c9c1060]]
timestamp