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: Object validateEClass(EClass)
|
Method name: Object validateEClass(EClass)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (keyFeature == null)↵ | 1 | if (valueFeature == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | error(RoseImporterPlugin.INSTANCE.getString("_UI_ExpectingFeatureNamedKey_message", new Object []{ eClass.getName() }));↵ | 3 | error(RoseImporterPlugin.INSTANCE.getString("_UI_ExpectingFeatureNamedValue_message", new Object []{ eClass.getName() }));↵ | |
4 | eClass.setInstanceClassName(null);↵ | 4 | eClass.setInstanceClassName(null);↵ | |
5 | } | 5 |
| |
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 in the same method |
Number of node comparisons | 19 |
Number of mapped statements | 3 |
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) | 240.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83 | if (keyFeature == null) |
| 86 | if (valueFeature == null) | ||||||||||
84 | error(RoseImporterPlugin.INSTANCE.getString("_UI_ExpectingFeatureNamedKey_message", new Object[] {eClass.getName()})); |
| 87 | error(RoseImporterPlugin.INSTANCE.getString("_UI_ExpectingFeatureNamedValue_message", new Object[] {eClass.getName()})); | ||||||||||
85 | eClass.setInstanceClassName(null); | 88 | eClass.setInstanceClassName(null); |
Row | Violation |
---|