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: EObject createObjectByType(String, String, boolean)
|
Method name: void handleFeature(String, String)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | EStructuralFeature simpleFeature = extendedMetaData.getSimpleFeature(newObject.eClass());↵ | 1 | EStructuralFeature simpleFeature = extendedMetaData.getSimpleFeature(childObject.eClass());↵ | |
2 | if (simpleFeature != null)↵ | 2 | if (simpleFeature != null)↵ | |
3 | {↵ | 3 | ↵ | |
4 | {↵ | |||
4 | isSimpleFeature = true;↵ | 5 | isSimpleFeature = true;↵ | |
5 | isIDREF = simpleFeature instanceof EReference;↵ | 6 | isIDREF = simpleFeature instanceof EReference;↵ | |
6 | objects.push(null);↵ | 7 | objects.push(null);↵ | |
7 | mixedTargets.push(null);↵ | 8 | mixedTargets.push(null);↵ | |
8 | types.push(simpleFeature);↵ | 9 | types.push(simpleFeature);↵ | |
9 | text = new StringBuffer();↵ | 10 | text = new StringBuffer();↵ | |
10 | } | 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.2 |
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) | 5.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | EStructuralFeature simpleFeature = extendedMetaData.getSimpleFeature(newObject.eClass()); |
| 28 | EStructuralFeature simpleFeature = extendedMetaData.getSimpleFeature(childObject.eClass()); | ||||||||||
22 | if (simpleFeature != null) | 29 | if (simpleFeature != null) | |||||||||||
23 | isSimpleFeature = true; | 30 | isSimpleFeature = true; | |||||||||||
24 | isIDREF = simpleFeature instanceof EReference; | 31 | isIDREF = simpleFeature instanceof EReference; | |||||||||||
25 | objects.push(null); | 32 | objects.push(null); | |||||||||||
26 | mixedTargets.push(null); | 33 | mixedTargets.push(null); | |||||||||||
27 | types.push(simpleFeature); | 34 | types.push(simpleFeature); | |||||||||||
28 | text = new StringBuffer(); | 35 | text = new StringBuffer(); |
Row | Violation |
---|