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: 5 | Number of AST nodes: 5 | |||
1 | for (int j=0; j < topLabelForms.length; j++) ↵ | 1 | for (int j=0; j < bottomLabelForms.length; j++) ↵ | |
2 | {↵ | 2 | {↵ | |
3 | IConfigurationElement labelForm[] = topLabelForms[j].getChildren("label-form");↵ | 3 | IConfigurationElement labelForm[] = bottomLabelForms[j].getChildren("label-form");↵ | |
4 | for (int k=0; k < labelForm.length; k++) ↵ | 4 | for (int k=0; k < labelForm.length; k++) ↵ | |
5 | {↵ | 5 | {↵ | |
6 | topLabelLongForms.add(labelForm[k].getAttribute("long"));↵ | 6 | bottomLabelLongForms.add(labelForm[k].getAttribute("long"));↵ | |
7 | topLabelShortForms.add(labelForm[k].getAttribute("short"));↵ | 7 | bottomLabelShortForms.add(labelForm[k].getAttribute("short"));↵ | |
8 | }↵ | 8 | }↵ | |
9 | } | 9 |
| |
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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 17 |
Number of mapped statements | 5 |
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) | 4.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46 | for (int j = 0; j < topLabelForms.length; j++) |
| 52 | for (int j = 0; j < bottomLabelForms.length; j++) | ||||||||||
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 |
---|