File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java | File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/wizard/AbstractExampleInstallerWizard.java | |||
Method name: boolean prepare()
|
Method name: ImportOperation createFileImportOperation(ProjectDescriptor)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 2 | |||
1 | if (!entryFeatures.isEmpty())↵ | 1 | if (↵ | |
2 | ↵ | 2 | isZipFile(file))↵ | |
3 | {↵ | 3 | {↵ | |
4 | return false;↵ | 4 | return ↵ | |
5 | }↵ | |||
6 | entryFeatures.add(entryFeature); | 5 | createZipImportOperation(projectDescriptor, file);↵ | |
6 |
| |||
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 | 5 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | if (!entryFeatures.isEmpty()) |
| 8 | if (isZipFile(file)) | ||||||||||
|
| 9 | return createZipImportOperation(projectDescriptor, file); | |||||||||||
32 | return false; |
| | |||||||||||
33 | entryFeatures.add(entryFeature); |
| |
Row | Violation |
---|---|
1 | Unmatched return createZipImportOperation(projectDescriptor,file); |
2 | Unmatched return false; |
3 | Unmatched statement entryFeatures.add(entryFeature); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |