Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 2 | 0.964 | class_member_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 325 | src/NHibernate/Util/LinkedHashMap.cs |
2 | 17 | 239 | src/NHibernate/Util/SequencedHashMap.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; } |
| ||||
/// <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; } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#26def2a0]] | private static |
1 | 2 | [[#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 |
2 | 1 | [[#26def280]] | header |
2 | 2 | [[#26def280]] | _sentinel |