| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 24 | 2 | 6 | 0.959 | class_member_declarations |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 24 | 541 | src/NHibernate/Collection/PersistentList.cs |
| 2 | 24 | 471 | src/NHibernate/Collection/PersistentMap.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);
}
|
| ||||
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);
}
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#70e39e00]] | PersistentList |
| 1 | 2 | [[#70e39e00]] | PersistentMap |
| 2 | 1 | [[#70e39d60]] | int |
| 2 | 2 | [[#70e39d60]] | object |
| 3 | 1 | [[#70e39ca0]] | int |
| 3 | 2 | [[#70e39ca0]] | Object |
| 4 | 1 | [[#70e39c00]] | object |
| 4 | 2 | [[#70e39c00]] | Object |
| 5 | 1 | [[#70e39c20]] | list |
| 5 | 2 | [[#70e39c20]] | map |
| 6 | 1 | [[#70e39c40]] | RemoveAt |
| 6 | 2 | [[#70e39c40]] | Remove |