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.986 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 120 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElementDeltaBuilder.java |
2 | 12 | 415 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElementDeltaBuilder.java |
| ||||
/** * Repairs the positioning information * after an element has been added */ private void added(IJavaElement element) { this.added.add(element); ListItem current = this.getNewPosition(element); ListItem previous = null, next = null; if (current.previous != null) previous = this.getNewPosition(current.previous); if (current.next != null) next = this.getNewPosition(current.next); if (previous != null) previous.next = current.next; if (next != null) next.previous = current.previous; } |
| ||||
/** * Repairs the positioning information * after an element has been removed */ private void removed(IJavaElement element) { this.removed.add(element); ListItem current = this.getOldPosition(element); ListItem previous = null, next = null; if (current.previous != null) previous = this.getOldPosition(current.previous); if (current.next != null) next = this.getOldPosition(current.next); if (previous != null) previous.next = current.next; if (next != null) next.previous = current.previous; } |
| |||
/** * Repairs the positioning information * after an element has been added */ /** * Repairs the positioning information * after an element has been removed */ private void [[#variableb856e3a0]](IJavaElement element) { this. [[#variableb856e3a0]].add(element); ListItem current = this. [[#variableb677aea0]](element); ListItem previous = null, next = null; if (current.previous != null) previous = this. [[#variableb677aea0]](current.previous); if (current.next != null) next = this. [[#variableb677aea0]](current.next); if (previous != null) previous.next = current.next; if (next != null) next.previous = current.previous; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b856e3a0]] | added |
1 | 2 | [[#b856e3a0]] | removed |
2 | 1 | [[#b677aea0]] | getNewPosition |
2 | 2 | [[#b677aea0]] | getOldPosition |