File path: /jfreechart-1.0.10/src/org/jfree/chart/ChartPanel.java | File path: /jfreechart-1.0.10/swt/org/jfree/experimental/chart/swt/ChartComposite.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void widgetSelected(SelectionEvent)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | if (command.equals(ZOOM_OUT_RANGE_COMMAND)) { ↵ | 1 | if (command.equals(ZOOM_OUT_RANGE_COMMAND)) {↵ | |
2 | zoomOutRange(screenX, screenY); ↵ | 2 | zoomOutRange(e.x, e.y);↵ | |
3 | } ↵ | 3 | }↵ | |
4 | else if (command.equals(ZOOM_RESET_BOTH_COMMAND)) { ↵ | 4 | else if (command.equals(ZOOM_RESET_BOTH_COMMAND)) {↵ | |
5 | restoreAutoBounds(); ↵ | 5 | restoreAutoBounds();↵ | |
6 | } ↵ | 6 | }↵ | |
7 | else if (command.equals(ZOOM_RESET_DOMAIN_COMMAND)) { ↵ | 7 | else if (command.equals(ZOOM_RESET_DOMAIN_COMMAND)) {↵ | |
8 | restoreAutoDomainBounds(); ↵ | 8 | restoreAutoDomainBounds();↵ | |
9 | } ↵ | 9 | }↵ | |
10 | else if (command.equals(ZOOM_RESET_RANGE_COMMAND)) { ↵ | 10 | else if (command.equals(ZOOM_RESET_RANGE_COMMAND)) {↵ | |
11 | restoreAutoRangeBounds(); ↵ | 11 | restoreAutoRangeBounds();↵ | |
12 | } | 12 |
| |
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) | 1.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 46 |
Number of mapped statements | 8 |
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) | 7.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24 | else if (command.equals(ZOOM_OUT_RANGE_COMMAND)) |
| 21 | else if (command.equals(ZOOM_RESET_BOTH_COMMAND)) | |||||||||||||||||
25 | zoomOutRange(screenX, screenY); |
| 22 | restoreAutoBounds(); | |||||||||||||||||
26 | else if (command.equals(ZOOM_RESET_BOTH_COMMAND)) |
| 25 | else if (command.equals(ZOOM_RESET_RANGE_COMMAND)) | |||||||||||||||||
27 | restoreAutoBounds(); |
| 26 | restoreAutoRangeBounds(); | |||||||||||||||||
28 | else if (command.equals(ZOOM_RESET_DOMAIN_COMMAND)) | 23 | else if (command.equals(ZOOM_RESET_DOMAIN_COMMAND)) | ||||||||||||||||||
29 | restoreAutoDomainBounds(); | 24 | restoreAutoDomainBounds(); | ||||||||||||||||||
30 | else if (command.equals(ZOOM_RESET_RANGE_COMMAND)) |
| 19 | else if (command.equals(ZOOM_OUT_RANGE_COMMAND)) | |||||||||||||||||
31 | restoreAutoRangeBounds(); |
| 20 | zoomOutRange(e.x, e.y); |
Row | Violation |
---|---|
1 | Expression zoomOutRange(screenX,screenY) is a void method call, and thus it cannot be parameterized |
2 | Expression restoreAutoBounds() is a void method call, and thus it cannot be parameterized |
3 | Expression zoomOutRange(screenX,screenY) is a void method call, and thus it cannot be parameterized |
4 | Expression restoreAutoBounds() is a void method call, and thus it cannot be parameterized |
5 | Expression restoreAutoBounds() is a void method call, and thus it cannot be parameterized |
6 | Expression restoreAutoRangeBounds() is a void method call, and thus it cannot be parameterized |
7 | Expression restoreAutoRangeBounds() is a void method call, and thus it cannot be parameterized |
8 | Expression zoomOutRange(e.x,e.y) is a void method call, and thus it cannot be parameterized |
9 | Expression restoreAutoRangeBounds() is a void method call, and thus it cannot be parameterized |
10 | Expression zoomOutRange(e.x,e.y) is a void method call, and thus it cannot be parameterized |
11 | The refactoring of the clones is infeasible, because classes org.jfree.chart.ChartPanel and org.jfree.experimental.chart.swt.ChartComposite do not have a common superclass |