CloneSet2551


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11220.968executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11145
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BecomeWorkingCopyOperation.java
21144
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DiscardWorkingCopyOperation.java
Clone Instance
1
Line Count
11
Source Line
45
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BecomeWorkingCopyOperation.java

                       {
                        if (workingCopy.getResource().isAccessible()) {
                                // report a F_PRIMARY_WORKING_COPY change delta for a primary working copy
                                JavaElementDelta delta = new JavaElementDelta(getJavaModel());
                                delta.changed(workingCopy, IJavaElementDelta.F_PRIMARY_WORKING_COPY);
                                addDelta(delta);
                        }
                        else   {
                                // report an ADDED delta
                                JavaElementDelta delta = new JavaElementDelta(this.getJavaModel());
                                delta.added(workingCopy, IJavaElementDelta.F_PRIMARY_WORKING_COPY);
                                addDelta(delta);
                        }
                       }


Clone Instance
2
Line Count
11
Source Line
44
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DiscardWorkingCopyOperation.java

                               {
                                if (workingCopy.getResource().isAccessible()) {
                                        // report a F_PRIMARY_WORKING_COPY change delta for a primary working copy
                                        JavaElementDelta delta = new JavaElementDelta(getJavaModel());
                                        delta.changed(workingCopy, IJavaElementDelta.F_PRIMARY_WORKING_COPY);
                                        addDelta(delta);
                                }
                                else   {
                                        // report a REMOVED delta
                                        JavaElementDelta delta = new JavaElementDelta(getJavaModel());
                                        delta.removed(workingCopy, IJavaElementDelta.F_PRIMARY_WORKING_COPY);
                                        addDelta(delta);
                                }
                               }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  if (workingCopy.getResource().isAccessible()) {
    // report a F_PRIMARY_WORKING_COPY change delta for a primary working copy
    JavaElementDelta delta = new JavaElementDelta(getJavaModel());
    delta.changed(workingCopy, IJavaElementDelta.F_PRIMARY_WORKING_COPY);
    addDelta(delta);
  }
  else {
    // report an ADDED delta
    // report a REMOVED delta
    JavaElementDelta delta = new JavaElementDelta( [[#variable62729720]]);
    delta. [[#variable627296c0]](workingCopy, IJavaElementDelta.F_PRIMARY_WORKING_COPY);
    addDelta(delta);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62729720]]
this.getJavaModel() 
12[[#62729720]]
getJavaModel() 
21[[#627296c0]]
added 
22[[#627296c0]]
removed