File path: /emf-2.4.1/src/org/eclipse/emf/converter/ui/contribution/base/ModelConverterPackagePage.java | File path: /emf-2.4.1/src/org/eclipse/emf/exporter/ui/EMFExportWizard.java | |||
Method name: void dispose()
|
Method name: void dispose()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | ePackagesCheckboxTableViewer = null;↵ | |||
2 | referencedGenModelsCheckboxTreeViewer↵ | 1 | selection = null;↵ | |
3 | = null;↵ | 2 | workbench = null;↵ | |
3 | ↵ | |||
4 | if (filteredEPackages != null)↵ | 4 | if (selectionPage != null)↵ | |
5 | {↵ | 5 | {↵ | |
6 | filteredEPackages.clear();↵ | 6 | selectionPage.clearCache();↵ | |
7 | filteredEPackages = null;↵ | 7 | selectionPage = null;↵ | |
8 | }↵ | 8 | }↵ | |
9 | super.dispose(); | 9 |
| |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 18 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | selection = null; | ||||||||||||||||
1 | ePackagesCheckboxTableViewer = null; | | ||||||||||||||||
| 2 | workbench = null; | ||||||||||||||||
2 | referencedGenModelsCheckboxTreeViewer = null; | | ||||||||||||||||
3 | if (filteredEPackages != null) |
| 3 | if (selectionPage != null) | ||||||||||||||
| 4 | selectionPage.clearCache(); | ||||||||||||||||
4 | filteredEPackages.clear(); | | ||||||||||||||||
| 5 | selectionPage = null; | ||||||||||||||||
5 | filteredEPackages = null; | | ||||||||||||||||
6 | super.dispose(); | 6 | super.dispose(); |
Row | Violation |
---|---|
1 | Type java.util.List<org.eclipse.emf.ecore.EPackage> of variable filteredEPackages does not match with type org.eclipse.emf.converter.ui.ModelConverterDescriptorSelectionPage of variable selectionPage |