Object o1 = data[i];
Object o2 = objects.next();
Object o1 = data[i];
Object o2 = objects.next();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java
|
Method name: boolean equals(Object)
|
|
Method name: boolean equals(Object)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | Object o1 = data[i];↵ | | 1 | Object o1 = data[i];↵
|
2 | Object o2 = objects.next(); | | 2 | Object o2 = objects.next();
|
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 the same method |
Number of node comparisons | 5 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
11 | Object o1 = data[i]; | | 16 | Object o1 = data[i]; |
12 | Object o2 = objects.next(); | | | |
| | | 17 | Object o2 = objects.next(); |
Precondition Violations (0)
Row |
Violation |