Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 4 | 0.957 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 448 | src/NHibernate/Collection/PersistentBag.cs |
2 | 7 | 467 | src/NHibernate/Collection/PersistentBag.cs |
| ||||
{ for (int i = 0; i < bag.Count; i++) { // we are using ReferenceEquals to be sure that is exactly the same queued instance if (ReferenceEquals(o, bag[i])) { additionQueue.Add(o); break; } } } |
| ||||
{ for (int i = additionStartFrom; i < bag.Count; i++) { if (ReferenceEquals(o, bag[i])) { bag.RemoveAt(i); break; } } } |
| |||
{ for (int i = [[#variable27d12780]]; i < bag.Count; i++) { // we are using ReferenceEquals to be sure that is exactly the same queued instance if (ReferenceEquals(o, bag[i])) { [[#variable27c35e80]]. [[#variable27d12680]]( [[#variable27d12660]]); break; } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27d12780]] | additionStartFrom |
1 | 2 | [[#27d12780]] | 0 |
2 | 1 | [[#27c35e80]] | bag |
2 | 2 | [[#27c35e80]] | additionQueue |
3 | 1 | [[#27d12680]] | RemoveAt |
3 | 2 | [[#27d12680]] | Add |
4 | 1 | [[#27d12660]] | i |
4 | 2 | [[#27d12660]] | o |