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 | if (topLabelSeparatorAll.length > 0) ↵ | 1 | if (bottomLabelSeparatorAll.length > 0) ↵ | |
2 | {↵ | 2 | {↵ | |
3 | String sep = topLabelSeparatorAll[0].getAttribute("value");↵ | 3 | String sep = bottomLabelSeparatorAll[0].getAttribute("value");↵ | |
4 | if (sep.length() > 0) ↵ | 4 | if (sep.length() > 0) ↵ | |
5 | {↵ | 5 | {↵ | |
6 | topLabelSeparator = sep.charAt(0);↵ | 6 | bottomLabelSeparator = sep.charAt(0);↵ | |
7 | }↵ | 7 | }↵ | |
8 | } | 8 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
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) | 0.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | if (topLabelSeparatorAll.length > 0) |
| 23 | if (bottomLabelSeparatorAll.length > 0) | ||||||||||||
19 | String sep = topLabelSeparatorAll[0].getAttribute("value"); |
| 24 | String sep = bottomLabelSeparatorAll[0].getAttribute("value"); | ||||||||||||
20 | if (sep.length() > 0) | 25 | if (sep.length() > 0) | |||||||||||||
21 | topLabelSeparator = sep.charAt(0); |
| 26 | bottomLabelSeparator = sep.charAt(0); |
Row | Violation |
---|---|
1 | Expression topLabelSeparator is a field being modified, and thus it cannot be parameterized |
2 | Expression bottomLabelSeparator is a field being modified, and thus it cannot be parameterized |