File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/ExtendedImageRegistry.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/ExtendedImageRegistry.java | |||
Method name: InputStream generateGIF(String, String)
|
Method name: InputStream generateGIF(String, String)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | if (!info1.rainbow || info1.which == index - 1)↵ | 1 | if (!info1.rainbow || info1.which == index - 1)↵ | |
2 | {↵ | 2 | {↵ | |
3 | content[j] = info1.scale(info1.green, info1.factor[index]);↵ | 3 | content[j] = info1.scale(info1.blue, info1.factor[index]);↵ | |
4 | } | 4 |
| |
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 | 6 |
Number of mapped statements | 2 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | if (!info1.rainbow || info1.which == index - 1) | 18 | if (!info1.rainbow || info1.which == index - 1) | |||||||||||||
15 | content[j] = info1.scale(info1.green, info1.factor[index]); |
| 19 | content[j] = info1.scale(info1.blue, info1.factor[index]); |
Row | Violation |
---|---|
1 | Expression info1.green cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression info1.blue cannot be parameterized, because it has dependencies to/from statements that will be extracted |