| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 3 | 2 | 0.956 | block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 334 | src/NHibernate/Collection/PersistentBag.cs |
| 2 | 8 | 312 | src/NHibernate/Collection/PersistentList.cs |
| 3 | 9 | 283 | src/NHibernate/Collection/PersistentMap.cs |
| ||||
{
Initialize(true);
// NH: Different implementation: we use the count to know if the value was removed (better performance)
int contained = bag.Count;
bag.Remove(value);
if (contained != bag.Count)
{
Dirty();
}
}
|
| ||||
{
Initialize(true);
// NH: Different implementation: we use the count to know if the value was removed (better performance)
int contained = list.Count;
list.Remove(value);
if (contained != list.Count)
{
Dirty();
}
}
|
| ||||
{
// TODO : safe to interpret "map.remove(key) == null" as non-dirty?
Initialize(true);
// NH: Different implementation: we use the count to know if the value was removed (better performance)
int contained = map.Count;
map.Remove(key);
if (contained != map.Count)
{
Dirty();
}
}
|
| |||
{
// TODO : safe to interpret "map.remove(key) == null" as non-dirty?
Initialize(true);
// NH: Different implementation: we use the count to know if the value was removed (better performance)
int contained = [[#variable53673420]].Count;
[[#variable53673420]].Remove( [[#variable536733a0]]);
if (contained != [[#variable53673420]].Count)
{
Dirty();
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#53673420]] | map |
| 1 | 2 | [[#53673420]] | list |
| 1 | 3 | [[#53673420]] | bag |
| 2 | 1 | [[#536733a0]] | key |
| 2 | 2 | [[#536733a0]] | value |
| 2 | 3 | [[#536733a0]] | value |