CloneSet1299


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9320.956block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18334
src/NHibernate/Collection/PersistentBag.cs
28312
src/NHibernate/Collection/PersistentList.cs
39283
src/NHibernate/Collection/PersistentMap.cs
Clone Instance
1
Line Count
8
Source Line
334
Source File
src/NHibernate/Collection/PersistentBag.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();
                        }
                }


Clone Instance
2
Line Count
8
Source Line
312
Source File
src/NHibernate/Collection/PersistentList.cs

                        {
                                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();
                                }
                        }


Clone Instance
3
Line Count
9
Source Line
283
Source File
src/NHibernate/Collection/PersistentMap.cs

                        {
                                // 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();
                                }
                        }


Clone AbstractionParameter Count: 2Parameter Bindings

{
   // 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53673420]]
map 
12[[#53673420]]
list 
13[[#53673420]]
bag 
21[[#536733a0]]
key 
22[[#536733a0]]
value 
23[[#536733a0]]
value