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: 7 | Number of AST nodes: 7 | |||
1 | String labelCase = bottomLabelCaseAll[0].getAttribute("value");↵ | 1 | String labelCase = topLabelCaseAll[0].getAttribute("value");↵ | |
2 | if (labelCase.equalsIgnoreCase("upper")) ↵ | 2 | if (labelCase.equalsIgnoreCase("upper")) ↵ | |
3 | {↵ | 3 | {↵ | |
4 | bottomLabelCase = LABEL_UPPER;↵ | 4 | topLabelCase = LABEL_UPPER;↵ | |
5 | }↵ | 5 | }↵ | |
6 | else if (labelCase.equalsIgnoreCase("lower")) ↵ | 6 | else if (labelCase.equalsIgnoreCase("lower")) ↵ | |
7 | {↵ | 7 | {↵ | |
8 | bottomLabelCase = LABEL_LOWER;↵ | 8 | topLabelCase = LABEL_LOWER;↵ | |
9 | }↵ | 9 | }↵ | |
10 | else if (labelCase.equalsIgnoreCase("mixed")) ↵ | 10 | else if (labelCase.equalsIgnoreCase("mixed")) ↵ | |
11 | {↵ | 11 | {↵ | |
12 | bottomLabelCase = LABEL_MIXED;↵ | 12 | topLabelCase = LABEL_MIXED;↵ | |
13 | } | 13 |
| |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 30 |
Number of mapped statements | 7 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38 | String labelCase = bottomLabelCaseAll[0].getAttribute("value"); |
| 29 | String labelCase = topLabelCaseAll[0].getAttribute("value"); | ||||||||||||
39 | if (labelCase.equalsIgnoreCase("upper")) | 30 | if (labelCase.equalsIgnoreCase("upper")) | |||||||||||||
40 | bottomLabelCase = LABEL_UPPER; |
| 31 | topLabelCase = LABEL_UPPER; | ||||||||||||
41 | else if (labelCase.equalsIgnoreCase("lower")) | 32 | else if (labelCase.equalsIgnoreCase("lower")) | |||||||||||||
42 | bottomLabelCase = LABEL_LOWER; |
| 33 | topLabelCase = LABEL_LOWER; | ||||||||||||
43 | else if (labelCase.equalsIgnoreCase("mixed")) | 34 | else if (labelCase.equalsIgnoreCase("mixed")) | |||||||||||||
44 | bottomLabelCase = LABEL_MIXED; |
| 35 | topLabelCase = LABEL_MIXED; |
Row | Violation |
---|---|
1 | Expression bottomLabelCase is a field being modified, and thus it cannot be parameterized |
2 | Expression topLabelCase is a field being modified, and thus it cannot be parameterized |
3 | Expression bottomLabelCase is a field being modified, and thus it cannot be parameterized |
4 | Expression topLabelCase is a field being modified, and thus it cannot be parameterized |
5 | Expression bottomLabelCase is a field being modified, and thus it cannot be parameterized |
6 | Expression topLabelCase is a field being modified, and thus it cannot be parameterized |