Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.982 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 22 | src/NHibernate.Test/UserCollection/MyListType.cs |
2 | 8 | 34 | src/NHibernate.Test/UserCollection/Parameterized/DefaultableListType.cs |
| ||||
public IEnumerable GetElements(object collection) { return (IEnumerable) collection; } public bool Contains(object collection, object entity) { return ((IList) collection).Contains(entity); } |
| ||||
public IEnumerable GetElements(object collection) { return (IDefaultableList)collection; } public bool Contains(object collection, object entity) { return ((IDefaultableList)collection).Contains(entity); } |
| |||
public IEnumerable GetElements(object collection) { return ( [[#variable2851d5c0]])collection; } public bool Contains(object collection, object entity) { return (( [[#variable2851d4a0]])collection).Contains(entity); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2851d5c0]] | IEnumerable |
1 | 2 | [[#2851d5c0]] | IDefaultableList |
2 | 1 | [[#2851d4a0]] | IList |
2 | 2 | [[#2851d4a0]] | IDefaultableList |