Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 1 | 0.993 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 60 | src/NHibernate/Cache/NonstrictReadWriteCache.cs |
2 | 23 | 48 | src/NHibernate/Cache/ReadOnlyCache.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; } |
| ||||
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; } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6c9c1060]] | txTimestamp |
1 | 2 | [[#6c9c1060]] | timestamp |