super(domain, LABEL, DESCRIPTION);
this.owner = owner;
this.feature = feature;
this.collection = collection;
this.index = index;
ownerList = getOwnerList(owner, feature);
super(domain, LABEL, DESCRIPTION);
this.owner = owner;
this.feature = feature;
this.index = index;
this.optimize = optimize;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/PasteFromClipboardCommand.java
|
Method name: void AddCommand(EditingDomain, EObject, EStructuralFeature, Collection>, int)
|
|
Method name: void PasteFromClipboardCommand(EditingDomain, Object, Object, int, boolean)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 5
|
|
1 | super(domain, LABEL, DESCRIPTION);↵ | | 1 | super(domain, LABEL, DESCRIPTION);↵
|
|
2 | this.owner = owner;↵ | | 2 | this.owner = owner;↵
|
3 | this.feature = feature;↵ | | 3 | this.feature = feature;↵
|
4 | this.collection = collection;↵ | | |
|
5 | this.index = index;↵ | | 4 | this.index = index;↵
|
|
6 | ownerList = getOwnerList(owner, feature); | | 5 | this.optimize = optimize;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 27 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super(domain, LABEL, DESCRIPTION); | | 1 | super(domain, LABEL, DESCRIPTION); |
| | | 2 | this.owner = owner; |
2 | this.owner = owner; | | | |
| | | 3 | this.feature = feature; |
3 | this.feature = feature; | | | |
4 | this.collection = collection; | | | |
5 | this.index = index; | | 4 | this.index = index; |
| | | 5 | this.optimize = optimize; |
6 | ownerList = getOwnerList(owner, feature); | | | |
Precondition Violations (0)
Row |
Violation |