Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 2 | 0.968 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 45 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BecomeWorkingCopyOperation.java |
2 | 11 | 44 | 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 an ADDED delta JavaElementDelta delta = new JavaElementDelta(this.getJavaModel()); delta.added(workingCopy, IJavaElementDelta.F_PRIMARY_WORKING_COPY); addDelta(delta); } } |
| ||||
{ 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); } } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62729720]] | this.getJavaModel() |
1 | 2 | [[#62729720]] | getJavaModel() |
2 | 1 | [[#627296c0]] | added |
2 | 2 | [[#627296c0]] | removed |