Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 5 | 0.966 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 778 | src/NHibernate/Impl/SessionFactoryImpl.cs |
2 | 10 | 832 | src/NHibernate/Impl/SessionFactoryImpl.cs |
| ||||
{ IEntityPersister p = GetEntityPersister(persistentClass.FullName); if (p.HasCache) { if (log.IsDebugEnabled) { log.Debug("evicting second-level cache: " + MessageHelper.InfoString(p, id)); } CacheKey ck = new CacheKey(id, p.IdentifierType, p.RootEntityName, EntityMode.Poco, this ); p.Cache.Remove(ck); } } |
| ||||
{ ICollectionPersister p = GetCollectionPersister(roleName); if (p.HasCache) { if (log.IsDebugEnabled) { log.Debug("evicting second-level cache: " + MessageHelper.InfoString(p, id)); } CacheKey ck = new CacheKey(id, p.KeyType, p.Role, EntityMode.Poco, this ); p.Cache.Remove(ck); } } |
| |||
{ [[#variable690ae120]]p = [[#variable2cd13b40]]( [[#variable690ae8c0]]); if (p.HasCache) { if (log.IsDebugEnabled) { log.Debug("evicting second-level cache: " + MessageHelper.InfoString(p, id)); } CacheKey ck = new CacheKey(id, p. [[#variable690ae780]], p. [[#variable690ae5e0]], EntityMode.Poco, this ); p.Cache.Remove(ck); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#690ae120]] | ICollectionPersister |
1 | 2 | [[#690ae120]] | IEntityPersister |
2 | 1 | [[#2cd13b40]] | GetCollectionPersister |
2 | 2 | [[#2cd13b40]] | GetEntityPersister |
3 | 1 | [[#690ae8c0]] | roleName |
3 | 2 | [[#690ae8c0]] | persistentClass.FullName |
4 | 1 | [[#690ae780]] | KeyType |
4 | 2 | [[#690ae780]] | IdentifierType |
5 | 1 | [[#690ae5e0]] | Role |
5 | 2 | [[#690ae5e0]] | RootEntityName |