CloneSet1419


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27210.991statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127103
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java
227136
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java
Clone Instance
1
Line Count
27
Source Line
103
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java

                if (existingDelta != null) {
                        switch (newKind) {
                                case IJavaElementDelta.ADDED:
                                        if (existingDelta.getKind() == IJavaElementDelta.REMOVED) {
                                                // REMOVED then ADDED
                                                this.changes.remove(importContainer);
                                        }
                                        break;
                                case IJavaElementDelta.REMOVED:
                                        if (existingDelta.getKind() == IJavaElementDelta.ADDED) {
                                                // ADDED then REMOVED
                                                this.changes.remove(importContainer);
                                        }
                                        break;
                                        // CHANGED handled above
                              }
                }
                else   {
                        SimpleDelta delta = new SimpleDelta();
                        switch (newKind) {
                                case IJavaElementDelta.ADDED:
                                        delta.added();
                                        break;
                                case IJavaElementDelta.REMOVED:
                                        delta.removed();
                                        break;
                              }
                        this.changes.put(importContainer, delta);
                }


Clone Instance
2
Line Count
27
Source Line
136
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/hierarchy/ChangeCollector.java

                if (existingDelta != null) {
                        switch (newKind) {
                                case IJavaElementDelta.ADDED:
                                        if (existingDelta.getKind() == IJavaElementDelta.REMOVED) {
                                                // REMOVED then ADDED
                                                this.changes.remove(importDecl);
                                        }
                                        break;
                                case IJavaElementDelta.REMOVED:
                                        if (existingDelta.getKind() == IJavaElementDelta.ADDED) {
                                                // ADDED then REMOVED
                                                this.changes.remove(importDecl);
                                        }
                                        break;
                                // CHANGED cannot happen for import declaration
                              }
                }
                else   {
                        SimpleDelta delta = new SimpleDelta();
                        switch (newKind) {
                                case IJavaElementDelta.ADDED:
                                        delta.added();
                                        break;
                                case IJavaElementDelta.REMOVED:
                                        delta.removed();
                                        break;
                              }
                        this.changes.put(importDecl, delta);
                }


Clone AbstractionParameter Count: 1Parameter Bindings

if (existingDelta != null) {
  switch (newKind) {
    case IJavaElementDelta.ADDED:
      if (existingDelta.getKind() == IJavaElementDelta.REMOVED) {
        // REMOVED then ADDED
        this.changes.remove( [[#variable59a7d8e0]]);
      }
      break;
    case IJavaElementDelta.REMOVED:
      if (existingDelta.getKind() == IJavaElementDelta.ADDED) {
        // ADDED then REMOVED
        this.changes.remove( [[#variable59a7d8e0]]);
      }
      break;
  // CHANGED handled above
  // CHANGED cannot happen for import declaration
  }
}
else {
  SimpleDelta delta = new SimpleDelta();
  switch (newKind) {
    case IJavaElementDelta.ADDED:
      delta.added();
      break;
    case IJavaElementDelta.REMOVED:
      delta.removed();
      break;
  }
  this.changes.put( [[#variable59a7d8e0]], delta);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59a7d8e0]]
importContainer 
12[[#59a7d8e0]]
importDecl