CloneSet671


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24260.959class_member_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124541
src/NHibernate/Collection/PersistentList.cs
224471
src/NHibernate/Collection/PersistentMap.cs
Clone Instance
1
Line Count
24
Source Line
541
Source File
src/NHibernate/Collection/PersistentList.cs

                        private readonly PersistentList enclosingInstance;

                        private readonly int index;

                        private readonly object old;

                        public RemoveDelayedOperation(PersistentList enclosingInstance, int index, object old)
                        {
                                this.enclosingInstance = enclosingInstance;
                                this.index = index;
                                this.old = old;
                        }

                        public object AddedInstance
                        {
                                get { return null;
                                    }
                        }

                        public object Orphan
                        {
                                get { return old;
                                    }
                        }

                        public void Operate()
                        {
                                enclosingInstance.list.RemoveAt(index);
                        }



Clone Instance
2
Line Count
24
Source Line
471
Source File
src/NHibernate/Collection/PersistentMap.cs

                        private readonly PersistentMap enclosingInstance;

                        private readonly object index;

                        private readonly object old;

                        public RemoveDelayedOperation(PersistentMap enclosingInstance, Object index, Object old)
                        {
                                this.enclosingInstance = enclosingInstance;
                                this.index = index;
                                this.old = old;
                        }

                        public object AddedInstance
                        {
                                get { return null;
                                    }
                        }

                        public object Orphan
                        {
                                get { return old;
                                    }
                        }

                        public void Operate()
                        {
                                enclosingInstance.map.Remove(index);
                        }



Clone AbstractionParameter Count: 6Parameter Bindings

private readonly [[#variable70e39e00]]enclosingInstance;

private readonly [[#variable70e39d60]]index;

private readonly object old;

public RemoveDelayedOperation( [[#variable70e39e00]]enclosingInstance, [[#variable70e39ca0]]index, [[#variable70e39c00]]old)
{
   this.enclosingInstance = enclosingInstance;
   this.index = index;
   this.old = old;
}

public object AddedInstance
{
   get
   {
      return null;
   }
}

public object Orphan
{
   get
   {
      return old;
   }
}

public void Operate()
{
   enclosingInstance. [[#variable70e39c20]]. [[#variable70e39c40]](index);
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#70e39e00]]
PersistentList 
12[[#70e39e00]]
PersistentMap 
21[[#70e39d60]]
int 
22[[#70e39d60]]
object 
31[[#70e39ca0]]
int 
32[[#70e39ca0]]
Object 
41[[#70e39c00]]
object 
42[[#70e39c00]]
Object 
51[[#70e39c20]]
list 
52[[#70e39c20]]
map 
61[[#70e39c40]]
RemoveAt 
62[[#70e39c40]]
Remove