Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 2 | 0.983 | class_member_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 570 | src/NHibernate/Collection/PersistentList.cs |
2 | 22 | 674 | src/NHibernate/Collection/PersistentSet.cs |
| ||||
private readonly PersistentList enclosingInstance; private readonly object value; public SimpleRemoveDelayedOperation(PersistentList enclosingInstance, object value) { this.enclosingInstance = enclosingInstance; this.value = value; } public object AddedInstance { get { return null; } } public object Orphan { get { return value; } } public void Operate() { enclosingInstance.list.Remove(value); } |
| ||||
private readonly PersistentSet enclosingInstance; private readonly object value; public SimpleRemoveDelayedOperation(PersistentSet enclosingInstance, object value) { this.enclosingInstance = enclosingInstance; this.value = value; } public object AddedInstance { get { return null; } } public object Orphan { get { return value; } } public void Operate() { enclosingInstance.set.Remove(value); } |
| |||
private readonly [[#variable54bafbe0]]enclosingInstance; private readonly object value; public SimpleRemoveDelayedOperation( [[#variable54bafbe0]]enclosingInstance, object value) { this.enclosingInstance = enclosingInstance; this.value = value; } public object AddedInstance { get { return null; } } public object Orphan { get { return value; } } public void Operate() { enclosingInstance. [[#variable54bafb80]].Remove(value); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54bafbe0]] | PersistentSet |
1 | 2 | [[#54bafbe0]] | PersistentList |
2 | 1 | [[#54bafb80]] | set |
2 | 2 | [[#54bafb80]] | list |