File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLHandler.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLHandler.java | |||
Method name: void handleFeature(String, String)
|
Method name: EObject createObjectByType(String, String, boolean)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | EStructuralFeature simpleFeature = extendedMetaData.getSimpleFeature(childObject.eClass());↵ | 1 | EStructuralFeature simpleFeature = extendedMetaData.getSimpleFeature(newObject.eClass());↵ | |
2 | if (simpleFeature != null)↵ | 2 | if (simpleFeature != null)↵ | |
3 | {↵ | 3 | ↵ | |
4 | ↵ | 4 | {↵ | |
5 | isSimpleFeature = true;↵ | 5 | isSimpleFeature = true;↵ | |
6 | isIDREF = simpleFeature instanceof EReference;↵ | 6 | isIDREF = simpleFeature instanceof EReference;↵ | |
7 | objects.push(null);↵ | 7 | objects.push(null);↵ | |
8 | mixedTargets.push(null);↵ | 8 | mixedTargets.push(null);↵ | |
9 | types.push(simpleFeature);↵ | 9 | types.push(simpleFeature);↵ | |
10 | text = new StringBuffer();↵ | 10 | text = new StringBuffer();↵ | |
11 | } | 11 |
| |
See real code fragment | See real code fragment |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 51 |
Number of mapped statements | 8 |
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) | 4.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28 | EStructuralFeature simpleFeature = extendedMetaData.getSimpleFeature(childObject.eClass()); |
| 21 | EStructuralFeature simpleFeature = extendedMetaData.getSimpleFeature(newObject.eClass()); | ||||||||||
29 | if (simpleFeature != null) | 22 | if (simpleFeature != null) | |||||||||||
30 | isSimpleFeature = true; | 23 | isSimpleFeature = true; | |||||||||||
31 | isIDREF = simpleFeature instanceof EReference; | 24 | isIDREF = simpleFeature instanceof EReference; | |||||||||||
32 | objects.push(null); | 25 | objects.push(null); | |||||||||||
33 | mixedTargets.push(null); | 26 | mixedTargets.push(null); | |||||||||||
34 | types.push(simpleFeature); | 27 | types.push(simpleFeature); | |||||||||||
35 | text = new StringBuffer(); | 28 | text = new StringBuffer(); |
Row | Violation |
---|