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.954 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 804 | src/NHibernate/Impl/SessionFactoryImpl.cs |
2 | 10 | 845 | src/NHibernate/Impl/SessionFactoryImpl.cs |
| ||||
public void EvictEntity(string entityName) { IEntityPersister p = GetEntityPersister(entityName); if (p.HasCache) { if (log.IsDebugEnabled) { log.Debug("evicting second-level cache: " + p.EntityName); } p.Cache.Clear(); } } |
| ||||
public void EvictCollection(string roleName) { ICollectionPersister p = GetCollectionPersister(roleName); if (p.HasCache) { if (log.IsDebugEnabled) { log.Debug("evicting second-level cache: " + p.Role); } p.Cache.Clear(); } } |
| |||
public void [[#variable2d22f960]](string [[#variable2d22f800]]) { [[#variable2d22f940]]p = [[#variable2d22ef60]]( [[#variable2d22f800]]); if (p.HasCache) { if (log.IsDebugEnabled) { log.Debug("evicting second-level cache: " + p. [[#variable2d22f840]]); } p.Cache.Clear(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2d22f960]] | EvictEntity |
1 | 2 | [[#2d22f960]] | EvictCollection |
2 | 1 | [[#2d22f800]] | entityName |
2 | 2 | [[#2d22f800]] | roleName |
3 | 1 | [[#2d22f940]] | IEntityPersister |
3 | 2 | [[#2d22f940]] | ICollectionPersister |
4 | 1 | [[#2d22ef60]] | GetEntityPersister |
4 | 2 | [[#2d22ef60]] | GetCollectionPersister |
5 | 1 | [[#2d22f840]] | EntityName |
5 | 2 | [[#2d22f840]] | Role |