CloneSet1441


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.986class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112120
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElementDeltaBuilder.java
212415
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElementDeltaBuilder.java
Clone Instance
1
Line Count
12
Source Line
120
Source File
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;
}


Clone Instance
2
Line Count
12
Source Line
415
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaElementDeltaBuilder.java

/**
 * 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;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b856e3a0]]
added 
12[[#b856e3a0]]
removed 
21[[#b677aea0]]
getNewPosition 
22[[#b677aea0]]
getOldPosition