File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/builder/RoseEcoreBuilder.java | File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/builder/RoseEcoreBuilder.java | |||
Method name: void setResultType(RoseNode, EOperation)
|
Method name: void setEAttributeProperties(RoseNode, EAttribute)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | quid = quid.substring(1, quid.length() - 1);↵ | 1 | quid = quid.substring(1, quid.length() - 1);↵ | |
2 | TableObject tableObj = (TableObject)roseUtil.quidTable.get(quid);↵ | 2 | TableObject tableObj = (TableObject)roseUtil.quidTable.get(quid);↵ | |
3 | if (tableObj != null)↵ | 3 | if (tableObj != null)↵ | |
4 | {↵ | 4 | {↵ | |
5 | roseUtil.typeTable.put(eOperation, tableObj.getName());↵ | 5 | roseUtil.typeTable.put(eAttribute, tableObj.getName());↵ | |
6 | }↵ | 6 | }↵ | |
7 | else↵ | 7 | else↵ | |
8 | {↵ | 8 | {↵ | |
9 | warning(RoseImporterPlugin.INSTANCE.getString("_UI_UnresolvedTypeIDFor_message", new Object []{ quid, eOperation.getName() }));↵ | 9 | warning(RoseImporterPlugin.INSTANCE.getString("_UI_UnresolvedTypeIDFor_message", new Object []{ quid, eAttribute.getName() }));↵ | |
10 | roseUtil.typeTable.put(eOperation, "EString");↵ | 10 | roseUtil.typeTable.put(eAttribute, "String");↵ | |
11 | } | 11 |
| |
See real code fragment | See real code fragment |
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 21 |
Number of mapped statements | 6 |
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) | 1.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | quid = quid.substring(1, quid.length() - 1); | 4 | quid = quid.substring(1, quid.length() - 1); | |||||||||||||||
4 | TableObject tableObj = (TableObject)roseUtil.quidTable.get(quid); | 5 | TableObject tableObj = (TableObject)roseUtil.quidTable.get(quid); | |||||||||||||||
5 | if (tableObj != null) | 6 | if (tableObj != null) | |||||||||||||||
6 | roseUtil.typeTable.put(eOperation, tableObj.getName()); |
| 7 | roseUtil.typeTable.put(eAttribute, tableObj.getName()); | ||||||||||||||
else | else | |||||||||||||||||
7 | warning(RoseImporterPlugin.INSTANCE.getString("_UI_UnresolvedTypeIDFor_message", new Object[] {quid, eOperation.getName()})); |
| 8 | warning(RoseImporterPlugin.INSTANCE.getString("_UI_UnresolvedTypeIDFor_message", new Object[] {quid, eAttribute.getName()})); | ||||||||||||||
8 | roseUtil.typeTable.put(eOperation, "EString"); |
| 9 | roseUtil.typeTable.put(eAttribute, "String"); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EOperation of variable eOperation does not match with type org.eclipse.emf.ecore.EAttribute of variable eAttribute |
2 | Type org.eclipse.emf.ecore.EOperation of variable eOperation does not match with type org.eclipse.emf.ecore.EAttribute of variable eAttribute |
3 | Type org.eclipse.emf.ecore.EOperation of variable eOperation does not match with type org.eclipse.emf.ecore.EAttribute of variable eAttribute |