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 setEAttributeProperties(RoseNode, EAttribute)
|
Method name: void setEParameterProperties(RoseNode, EParameter)
|
|||
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(eAttribute, tableObj.getName());↵ | 5 | roseUtil.typeTable.put(eParameter, tableObj.getName());↵ | |
6 | }↵ | 6 | }↵ | |
7 | else↵ | 7 | else↵ | |
8 | {↵ | 8 | {↵ | |
9 | warning(RoseImporterPlugin.INSTANCE.getString("_UI_UnresolvedTypeIDFor_message", new Object []{ quid, eAttribute↵ | 9 | warning(RoseImporterPlugin.INSTANCE.getString("_UI_UnresolvedTypeIDFor_message", new Object []{↵ | |
10 | quid,↵ | |||
10 | .getName() }));↵ | 11 | eParameter.getEOperation().getName() }));↵ | |
11 | roseUtil.typeTable.put(eAttribute, "String");↵ | 12 | roseUtil.typeTable.put(eParameter, "EObject");↵ | |
12 | } | 13 |
| |
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 | 5 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | quid = quid.substring(1, quid.length() - 1); | 4 | quid = quid.substring(1, quid.length() - 1); | |||||||||||||||
5 | TableObject tableObj = (TableObject)roseUtil.quidTable.get(quid); | 5 | TableObject tableObj = (TableObject)roseUtil.quidTable.get(quid); | |||||||||||||||
6 | if (tableObj != null) | 6 | if (tableObj != null) | |||||||||||||||
7 | roseUtil.typeTable.put(eAttribute, tableObj.getName()); |
| 7 | roseUtil.typeTable.put(eParameter, tableObj.getName()); | ||||||||||||||
else | else | |||||||||||||||||
| 8 | warning(RoseImporterPlugin.INSTANCE.getString("_UI_UnresolvedTypeIDFor_message", new Object[] {quid, eParameter.getEOperation().getName()})); | ||||||||||||||||
8 | warning(RoseImporterPlugin.INSTANCE.getString("_UI_UnresolvedTypeIDFor_message", new Object[] {quid, eAttribute.getName()})); | | ||||||||||||||||
9 | roseUtil.typeTable.put(eAttribute, "String"); |
| 9 | roseUtil.typeTable.put(eParameter, "EObject"); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EAttribute of variable eAttribute does not match with type org.eclipse.emf.ecore.EParameter of variable eParameter |
2 | Type org.eclipse.emf.ecore.EAttribute of variable eAttribute does not match with type org.eclipse.emf.ecore.EParameter of variable eParameter |