CloneSet1368


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10250.954class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110804
src/NHibernate/Impl/SessionFactoryImpl.cs
210845
src/NHibernate/Impl/SessionFactoryImpl.cs
Clone Instance
1
Line Count
10
Source Line
804
Source File
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();
                        }
                }



Clone Instance
2
Line Count
10
Source Line
845
Source File
src/NHibernate/Impl/SessionFactoryImpl.cs

                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();
                        }
                }



Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2d22f960]]
EvictEntity 
12[[#2d22f960]]
EvictCollection 
21[[#2d22f800]]
entityName 
22[[#2d22f800]]
roleName 
31[[#2d22f940]]
IEntityPersister 
32[[#2d22f940]]
ICollectionPersister 
41[[#2d22ef60]]
GetEntityPersister 
42[[#2d22ef60]]
GetCollectionPersister 
51[[#2d22f840]]
EntityName 
52[[#2d22f840]]
Role