File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/StackedXYAreaRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer2.java | |||
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (orientation == PlotOrientation.VERTICAL) {↵ | 1 | if (plot.getOrientation() == PlotOrientation.VERTICAL) {↵ | |
2 | areaState.getLine().setLine(transX0, transY0, transX1,↵ | 2 | state.workingLine.setLine(transX0, transY0, transX1, ↵ | |
3 | transY1);↵ | 3 | transY1);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (orientation == PlotOrientation.HORIZONTAL) {↵ | 5 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) {↵ | |
6 | areaState.getLine().setLine(transY0, transX0, transY1,↵ | 6 | state.workingLine.setLine(transY0, transX0, transY1, ↵ | |
7 | transX1);↵ | 7 | transX1);↵ | |
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.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
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) | 61.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39 | if (orientation == PlotOrientation.VERTICAL) |
| 44 | if (plot.getOrientation() == PlotOrientation.VERTICAL) | |||||||||||
40 | areaState.getLine().setLine(transX0, transY0, transX1, transY1); |
| 45 | state.workingLine.setLine(transX0, transY0, transX1, transY1); | |||||||||||
41 | else if (orientation == PlotOrientation.HORIZONTAL) |
| 46 | else if (plot.getOrientation() == PlotOrientation.HORIZONTAL) | |||||||||||
42 | areaState.getLine().setLine(transY0, transX0, transY1, transX1); |
| 47 | state.workingLine.setLine(transY0, transX0, transY1, transX1); |
Row | Violation |
---|---|
1 | Expression plot.getOrientation() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression state.workingLine cannot be parameterized, because it has dependencies to/from statements that will be extracted |