CloneSet1942


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12240.972statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112383
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessingState.java
212413
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessingState.java
Clone Instance
1
Line Count
12
Source Line
383
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessingState.java

                                // copy trailing listeners
                                int trailingLength = this.elementChangedListenerCount - i - 1;
                                if (trailingLength > 0) {
                                        System.arraycopy(this.elementChangedListeners, i + 1, newListeners, i, trailingLength);
                                        System.arraycopy(this.elementChangedListenerMasks, i + 1, newMasks, i, trailingLength);
                                }

                                // update manager listener state (#fire need to iterate over original listeners through a local variable to hold onto
                                // the original ones)
                                this.elementChangedListeners = newListeners;
                                this.elementChangedListenerMasks = newMasks;
                                this.elementChangedListenerCount--;
                                return;


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

                                // copy trailing listeners
                                int trailingLength = this.preResourceChangeListenerCount - i - 1;
                                if (trailingLength > 0) {
                                        System.arraycopy(this.preResourceChangeListeners, i + 1, newListeners, i, trailingLength);
                                        System.arraycopy(this.preResourceChangeEventMasks, i + 1, newEventMasks, i, trailingLength);
                                }

                                // update manager listener state (#fire need to iterate over original listeners through a local variable to hold onto
                                // the original ones)
                                this.preResourceChangeListeners = newListeners;
                                this.preResourceChangeEventMasks = newEventMasks;
                                this.preResourceChangeListenerCount--;
                                return;


Clone AbstractionParameter Count: 4Parameter Bindings

// copy trailing listeners
int trailingLength = this. [[#variableb3574a60]] - i - 1;
if (trailingLength > 0) {
  System.arraycopy(this. [[#variablea1ba3160]], i + 1, newListeners, i, trailingLength);
  System.arraycopy(this. [[#variable5e6183a0]], i + 1,  [[#variableb3574540]], i, trailingLength);
}
// update manager listener state (#fire need to iterate over original listeners through a local variable to hold onto
// the original ones)
this. [[#variablea1ba3160]]= newListeners;
this. [[#variable5e6183a0]]= [[#variableb3574540]];
this. [[#variableb3574a60]]--;
return;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b3574a60]]
preResourceChangeListenerCount 
12[[#b3574a60]]
elementChangedListenerCount 
21[[#a1ba3160]]
preResourceChangeListeners 
22[[#a1ba3160]]
elementChangedListeners 
31[[#5e6183a0]]
preResourceChangeEventMasks 
32[[#5e6183a0]]
elementChangedListenerMasks 
41[[#b3574540]]
newEventMasks 
42[[#b3574540]]
newMasks