File path: /emf-2.4.1/src/org/eclipse/emf/exporter/ModelExporter.java | File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/RoseImporter.java | |||
Method name: void dispose()
|
Method name: void dispose()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (genBaseToDetailsMap != null)↵ | 1 | if (pathMap != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | genBaseToDetailsMap.clear();↵ | 3 | pathMap.clear();↵ | |
4 | genBaseToDetailsMap = null;↵ | 4 | pathMap = null;↵ | |
5 | }↵ | 5 | }↵ | |
6 | ↵ | 6 | ↵ | |
7 | if (ePackageToGenPackageMap != null)↵ | 7 | if (roseEPackageInformationMap != null)↵ | |
8 | {↵ | 8 | {↵ | |
9 | ePackageToGenPackageMap.clear();↵ | 9 | roseEPackageInformationMap.clear();↵ | |
10 | ePackageToGenPackageMap = null;↵ | 10 | roseEPackageInformationMap = null;↵ | |
11 | }↵ | 11 | }↵ | |
12 | ↵ | |||
13 | super.dispose(); | 12 |
| |
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 in different classes having the same super class |
Number of node comparisons | 29 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (genBaseToDetailsMap != null) |
| 1 | if (pathMap != null) | ||||||||||||||
2 | genBaseToDetailsMap.clear(); |
| 2 | pathMap.clear(); | ||||||||||||||
| 3 | pathMap = null; | ||||||||||||||||
3 | genBaseToDetailsMap = null; | | ||||||||||||||||
4 | if (ePackageToGenPackageMap != null) |
| 4 | if (roseEPackageInformationMap != null) | ||||||||||||||
5 | ePackageToGenPackageMap.clear(); |
| 5 | roseEPackageInformationMap.clear(); | ||||||||||||||
| 6 | roseEPackageInformationMap = null; | ||||||||||||||||
6 | ePackageToGenPackageMap = null; | | ||||||||||||||||
7 | super.dispose(); | 7 | super.dispose(); |
Row | Violation |
---|---|
1 | Type java.util.Map<org.eclipse.emf.codegen.ecore.genmodel.GenBase,org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String>> of variable genBaseToDetailsMap does not match with type java.util.Map<java.lang.String,java.lang.String> of variable pathMap |
2 | Type java.util.Map<org.eclipse.emf.codegen.ecore.genmodel.GenBase,org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String>> of variable genBaseToDetailsMap does not match with type java.util.Map<java.lang.String,java.lang.String> of variable pathMap |
3 | Type java.util.Map<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.codegen.ecore.genmodel.GenPackage> of variable ePackageToGenPackageMap does not match with type java.util.Map<org.eclipse.emf.ecore.EPackage,java.util.List<java.lang.String>> of variable roseEPackageInformationMap |
4 | Type java.util.Map<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.codegen.ecore.genmodel.GenPackage> of variable ePackageToGenPackageMap does not match with type java.util.Map<org.eclipse.emf.ecore.EPackage,java.util.List<java.lang.String>> of variable roseEPackageInformationMap |