CloneSet873


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.964class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112325
src/NHibernate/Util/LinkedHashMap.cs
217239
src/NHibernate/Util/SequencedHashMap.cs
Clone Instance
1
Line Count
12
Source Line
325
Source File
src/NHibernate/Util/LinkedHashMap.cs

                private static void RemoveEntry(Entry entry)
                {
                        entry.Next.Prev = entry.Prev;
                        entry.Prev.Next = entry.Next;
                }

                private void InsertEntry(Entry entry)
                {
                        entry.Next = header;
                        entry.Prev = header.Prev;
                        header.Prev.Next = entry;
                        header.Prev = entry;
                }



Clone Instance
2
Line Count
17
Source Line
239
Source File
src/NHibernate/Util/SequencedHashMap.cs

                /// <summary>
                /// Removes an internal entry from the linked list. THis does not remove it from the underlying
                /// map.
                /// </summary>
                /// <param name="entry"></param>
                private void RemoveEntry(Entry entry)
                {
                        entry.Next.Prev = entry.Prev;
                        entry.Prev.Next = entry.Next;
                }

                /// <summary>
                /// Inserts a new internal entry to the tail of the linked list. This does not add the 
                /// entry to the underlying map.
                /// </summary>
                /// <param name="entry"></param>
                private void InsertEntry(Entry entry)
                {
                        entry.Next = _sentinel;
                        entry.Prev = _sentinel.Prev;
                        _sentinel.Prev.Next = entry;
                        _sentinel.Prev = entry;
                }



Clone AbstractionParameter Count: 2Parameter Bindings

 [[#variable26def2a0]]void RemoveEntry(Entry entry)
{
   entry.Next.Prev = entry.Prev;
   entry.Prev.Next = entry.Next;
}

/// <summary>
/// Inserts a new internal entry to the tail of the linked list. This does not add the 
/// entry to the underlying map.
/// </summary>
/// <param name="entry"></param>
private void InsertEntry(Entry entry)
{
   entry.Next = [[#variable26def280]];
   entry.Prev = [[#variable26def280]].Prev;
    [[#variable26def280]].Prev.Next = entry;
    [[#variable26def280]].Prev = entry;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#26def2a0]]
private static 
12[[#26def2a0]]
/// <summary>
/// Removes an internal entry from the linked list. THis does not remove it from the underlying
/// map.
/// </summary>
/// <param name="entry"></param>
private 
21[[#26def280]]
header 
22[[#26def280]]
_sentinel