return
new AbstractSequentialList<EClassifier>()
{
@Override
public ListIterator<EClassifier> listIterator(int index)
{
return basicListIterator();
}
@Override
public int size()
{
return delegateSize();
}
};
return
new AbstractSequentialList<EClass>()
{
@Override
public ListIterator<EClass> listIterator(int index)
{
return basicListIterator();
}
@Override
public int size()
{
return delegateSize();
}
};
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java
|
Method name: List delegateBasicList()
|
|
Method name: List delegateBasicList()
|
Number of AST nodes: 1
|
|
Number of AST nodes: 1
|
|
1 | return ↵ | | 1 | return ↵
|
2 | new AbstractSequentialList<EClassifier>() ↵ | | 2 | new AbstractSequentialList<EClass>() ↵
|
3 | {↵ | | 3 | {↵
|
4 | @Override↵ | | 4 | @Override↵
|
5 | public ListIterator<EClassifier> listIterator(int index)↵ | | 5 | public ListIterator<EClass> listIterator(int index)↵
|
6 | {↵ | | 6 | {↵
|
7 | return basicListIterator();↵ | | 7 | return basicListIterator();↵
|
8 | }↵ | | 8 | }↵
|
|
9 | @Override↵ | | 9 | @Override↵
|
10 | public int size()↵ | | 10 | public int size()↵
|
11 | {↵ | | 11 | {↵
|
12 | return delegateSize();↵ | | 12 | return delegateSize();↵
|
13 | }↵ | | 13 | }↵
|
14 | }; | | 14 | };
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 1 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |