CloneSet1020


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2220.968statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12264
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/command/RemoveCommand.java
22295
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/command/RemoveCommand.java
Next
Last
Clone Instance
1
Line Count
2
Source Line
264
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/command/RemoveCommand.java

// Iterate over the owner list twice, first matching objects from the collection by identity (==), then matching
// objects by value equality (.equals()). The positions of matched objects in the owner list are recorded, and
// the objects are stored in the same order. The lists are then merged to form a final, in-order list of objects
// and corresponding indices in ownerList. This is very important for undo to interpret the indices correctly.
// Also, this yields exactly one object removed for each object in the collection, with preference given to
// identity over value equality.
//
List<Object> identity = new ArrayList<Object>(collection.size());
int[] identityIndices = new int[collection.size()];


First
Previous
Clone Instance
2
Line Count
2
Source Line
295
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/command/RemoveCommand.java

// Second pass: match by value equality.
//
List<Object> equality = new ArrayList<Object>(collection.size());
int[] equalityIndices = new int[collection.size()];


Clone AbstractionParameter Count: 2Parameter Bindings

// Second pass: match by value equality.
// Iterate over the owner list twice, first matching objects from the collection by identity (==), then matching
// objects by value equality (.equals()). The positions of matched objects in the owner list are recorded, and
// the objects are stored in the same order. The lists are then merged to form a final, in-order list of objects
// and corresponding indices in ownerList. This is very important for undo to interpret the indices correctly.
// Also, this yields exactly one object removed for each object in the collection, with preference given to
// identity over value equality.
//
List<Object>  [[#variable174b00c0]]= new ArrayList<Object>(collection.size());
int[]  [[#variable174af200]]= new int[collection.size()];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#174b00c0]]
identity 
12[[#174b00c0]]
equality 
21[[#174af200]]
identityIndices 
22[[#174af200]]
equalityIndices