File path: /emf-2.4.1/src/org/eclipse/emf/mapping/domain/PluginAdapterFactoryMappingDomain.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/domain/PluginAdapterFactoryMappingDomain.java | |||
Method name: void initializeFromPlugin(String)
|
Method name: void initializeFromPlugin(String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | IConfigurationElement labelForm[] = topLabelForms[j].getChildren("label-form");↵ | 1 | IConfigurationElement labelForm[] = bottomLabelForms[j].getChildren("label-form");↵ | |
2 | for (int k=0; k < labelForm.length; k++) ↵ | 2 | for (int k=0; k < labelForm.length; k++) ↵ | |
3 | {↵ | 3 | {↵ | |
4 | topLabelLongForms.add(labelForm[k].getAttribute("long"));↵ | 4 | bottomLabelLongForms.add(labelForm[k].getAttribute("long"));↵ | |
5 | topLabelShortForms.add(labelForm[k].getAttribute("short"));↵ | 5 | bottomLabelShortForms.add(labelForm[k].getAttribute("short"));↵ | |
6 | } | 6 |
| |
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 | 13 |
Number of mapped statements | 4 |
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) | 3.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47 | IConfigurationElement labelForm[] = topLabelForms[j].getChildren("label-form"); |
| 53 | IConfigurationElement labelForm[] = bottomLabelForms[j].getChildren("label-form"); | ||||||||||
48 | for (int k = 0; k < labelForm.length; k++) | 54 | for (int k = 0; k < labelForm.length; k++) | |||||||||||
49 | topLabelLongForms.add(labelForm[k].getAttribute("long")); |
| 55 | bottomLabelLongForms.add(labelForm[k].getAttribute("long")); | ||||||||||
50 | topLabelShortForms.add(labelForm[k].getAttribute("short")); |
| 56 | bottomLabelShortForms.add(labelForm[k].getAttribute("short")); |
Row | Violation |
---|